From 9fbffee0b3956754acbcb49047e727b2a414a7f4 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Wed, 19 Nov 2014 17:10:39 +0000 Subject: [PATCH] [llvm-readobj][NFC] Appeasing mingw without C++11 std::to_string llvm-svn: 222369 --- llvm/tools/llvm-readobj/COFFDumper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp index 4e1bf2cbbd3c..5276428c5115 100644 --- a/llvm/tools/llvm-readobj/COFFDumper.cpp +++ b/llvm/tools/llvm-readobj/COFFDumper.cpp @@ -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(uint8_t Type) { 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) + ")"; } }