[llvm-branch-commits] [llvm-branch] r258266 - [r257857] lli: use llvm::utostr() instead of std::to_string().

NAKAMURA Takumi via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jan 19 16:32:10 PST 2016


Author: chapuni
Date: Tue Jan 19 18:32:09 2016
New Revision: 258266

URL: http://llvm.org/viewvc/llvm-project?rev=258266&view=rev
Log:
[r257857] lli: use llvm::utostr() instead of std::to_string().

Modified:
    llvm/branches/release_38/tools/lli/lli.cpp

Modified: llvm/branches/release_38/tools/lli/lli.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_38/tools/lli/lli.cpp?rev=258266&r1=258265&r2=258266&view=diff
==============================================================================
--- llvm/branches/release_38/tools/lli/lli.cpp (original)
+++ llvm/branches/release_38/tools/lli/lli.cpp Tue Jan 19 18:32:09 2016
@@ -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> launchRemo
       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';




More information about the llvm-branch-commits mailing list