[llvm] r222369 - [llvm-readobj][NFC]

Colin LeMahieu colinl at codeaurora.org
Wed Nov 19 09:10:39 PST 2014


Author: colinl
Date: Wed Nov 19 11:10:39 2014
New Revision: 222369

URL: http://llvm.org/viewvc/llvm-project?rev=222369&view=rev
Log:
[llvm-readobj][NFC]
Appeasing mingw without C++11 std::to_string

Modified:
    llvm/trunk/tools/llvm-readobj/COFFDumper.cpp

Modified: llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/COFFDumper.cpp?rev=222369&r1=222368&r2=222369&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/COFFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/COFFDumper.cpp Wed Nov 19 11:10:39 2014
@@ -20,6 +20,7 @@
 #include "Win64EHDumper.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/StringExtras.h"
 #include "llvm/Object/COFF.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/COFF.h"
@@ -1086,7 +1087,7 @@ static StringRef getBaseRelocTypeName(ui
   case COFF::IMAGE_REL_BASED_HIGHLOW: return "HIGHLOW";
   case COFF::IMAGE_REL_BASED_HIGHADJ: return "HIGHADJ";
   case COFF::IMAGE_REL_BASED_DIR64: return "DIR64";
-  default: return "unknown (" + std::to_string(Type) + ")";
+  default: return "unknown (" + llvm::utostr(Type) + ")";
   }
 }
 





More information about the llvm-commits mailing list