Bug 1111230 - Remove the library names for unsupported MSVC versions from trace-malloc; r=dbaron
authorEhsan Akhgari <ehsan@mozilla.com>
Sun, 14 Dec 2014 14:55:41 -0500
changeset 219680 9329008af0f5dc466a173ec56d8482b7c97e8196
parent 219679 bf9726857dc6032d0ab22a005c580e3a1ccbea9e
child 219681 ea56f7ef7ba51fa8da7cdba39c5b44a17e95e06c
push id10400
push userryanvm@gmail.com
push dateMon, 15 Dec 2014 18:54:54 +0000
treeherderfx-team@5d6e0d038f95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1111230
milestone37.0a1
Bug 1111230 - Remove the library names for unsupported MSVC versions from trace-malloc; r=dbaron
tools/trace-malloc/lib/nsWinTraceMalloc.cpp
--- a/tools/trace-malloc/lib/nsWinTraceMalloc.cpp
+++ b/tools/trace-malloc/lib/nsWinTraceMalloc.cpp
@@ -12,27 +12,17 @@
 #include "nscore.h"
 
 #include "nsDebugHelpWin32.h"
 #include "nsTraceMallocCallbacks.h"
 
 /***************************************************************************/
 // shows how to use the dhw stuff to hook imported functions
 
-#if _MSC_VER < 1300
-#define NS_DEBUG_CRT "MSVCRTD.dll"
-#elif _MSC_VER == 1300
-#define NS_DEBUG_CRT "msvcr70d.dll"
-#elif _MSC_VER == 1310
-#define NS_DEBUG_CRT "msvcr71d.dll"
-#elif _MSC_VER == 1400
-#define NS_DEBUG_CRT "msvcr80d.dll"
-#elif _MSC_VER == 1500
-#define NS_DEBUG_CRT "msvcr90d.dll"
-#elif _MSC_VER == 1600
+#if _MSC_VER == 1600
 #define NS_DEBUG_CRT "msvcr100d.dll"
 #elif _MSC_VER == 1700
 #define NS_DEBUG_CRT "msvcr110d.dll"
 #elif _MSC_VER == 1800
 #define NS_DEBUG_CRT "msvcr120d.dll"
 #else
 #error "Don't know filename of MSVC debug library."
 #endif