aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WindowsResource.cpp
diff options
context:
space:
mode:
authorEric Beckmann <ecbeckmann@google.com>2017-05-30 22:29:06 +0000
committerEric Beckmann <ecbeckmann@google.com>2017-05-30 22:29:06 +0000
commitba395ef4919a529f108d179508ba90e7f7527860 (patch)
tree07f01083b35c7bc038161eb940e3029bf0f03526 /llvm/lib/Object/WindowsResource.cpp
parent0bd0aa8f0742eec2c263095d3f7b459372364041 (diff)
downloadllvm-ba395ef4919a529f108d179508ba90e7f7527860.zip
llvm-ba395ef4919a529f108d179508ba90e7f7527860.tar.gz
llvm-ba395ef4919a529f108d179508ba90e7f7527860.tar.bz2
This patch should fix various clang warnings and a use of to_string
which isn't support before c++11. llvm-svn: 304252
Diffstat (limited to 'llvm/lib/Object/WindowsResource.cpp')
-rw-r--r--llvm/lib/Object/WindowsResource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/WindowsResource.cpp b/llvm/lib/Object/WindowsResource.cpp
index 511debd..e655b15 100644
--- a/llvm/lib/Object/WindowsResource.cpp
+++ b/llvm/lib/Object/WindowsResource.cpp
@@ -13,6 +13,7 @@
#include "llvm/Object/WindowsResource.h"
#include "llvm/Support/COFF.h"
+#include <sstream>
#include <system_error>
namespace llvm {
@@ -213,7 +214,7 @@ void WindowsResourceParser::TreeNode::print(ScopedPrinter &Writer,
Child.second->print(Writer, Child.first);
}
for (auto const &Child : IDChildren) {
- Child.second->print(Writer, std::to_string(Child.first));
+ Child.second->print(Writer, to_string(Child.first));
}
}