summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-01-15 02:14:46 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-01-15 02:14:46 +0000
commitcef0a821fa029ef8454687c732d7b4ba8b4b1271 (patch)
tree33fb09b1740fda5d50118bfe6f069c587112aaf7 /llvm/tools
parentfc6da237c7569b3bbfd7cb323d18999106465157 (diff)
downloadbcm5719-llvm-cef0a821fa029ef8454687c732d7b4ba8b4b1271.tar.gz
bcm5719-llvm-cef0a821fa029ef8454687c732d7b4ba8b4b1271.zip
lli: use llvm::utostr() instead of std::to_string().
llvm-svn: 257857
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/lli/lli.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 67e7cbd7686..a76ec11fb1d 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -16,6 +16,7 @@
#include "OrcLazyJIT.h"
#include "RemoteJITUtils.h"
#include "llvm/IR/LLVMContext.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/CodeGen/LinkAllCodegenComponents.h"
@@ -741,11 +742,11 @@ std::unique_ptr<FDRPCChannel> launchRemote() {
ChildPath.reset(new char[ChildExecPath.size() + 1]);
std::copy(ChildExecPath.begin(), ChildExecPath.end(), &ChildPath[0]);
ChildPath[ChildExecPath.size()] = '\0';
- std::string ChildInStr = std::to_string(PipeFD[0][0]);
+ std::string ChildInStr = utostr(PipeFD[0][0]);
ChildIn.reset(new char[ChildInStr.size() + 1]);
std::copy(ChildInStr.begin(), ChildInStr.end(), &ChildIn[0]);
ChildIn[ChildInStr.size()] = '\0';
- std::string ChildOutStr = std::to_string(PipeFD[1][1]);
+ std::string ChildOutStr = utostr(PipeFD[1][1]);
ChildOut.reset(new char[ChildOutStr.size() + 1]);
std::copy(ChildOutStr.begin(), ChildOutStr.end(), &ChildOut[0]);
ChildOut[ChildOutStr.size()] = '\0';
OpenPOWER on IntegriCloud