]> granicus.if.org Git - clang/commitdiff
[XRay][clang] Use llvm::to_string instead of std::string
authorDean Michael Berris <dberris@google.com>
Thu, 30 Mar 2017 01:05:09 +0000 (01:05 +0000)
committerDean Michael Berris <dberris@google.com>
Thu, 30 Mar 2017 01:05:09 +0000 (01:05 +0000)
This should unbreak some bots.

Follow-up on D30388.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299044 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/XRayArgs.cpp

index 59a35f11151bc4d6fec2f44c43b4be48403b14b6..0e0fe6ffa41c670476af71eeb7e3bf0278cb360b 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/SpecialCaseList.h"
+#include "llvm/Support/ScopedPrinter.h"
 
 using namespace clang;
 using namespace clang::driver;
@@ -91,7 +92,7 @@ void XRayArgs::addArgs(const ToolChain &TC, const ArgList &Args,
 
   CmdArgs.push_back(XRayInstrumentOption);
   CmdArgs.push_back(Args.MakeArgString(XRayInstructionThresholdOption +
-                                       std::to_string(InstructionThreshold)));
+                                       llvm::to_string(InstructionThreshold)));
 
   for (const auto &Always : AlwaysInstrumentFiles) {
     SmallString<64> AlwaysInstrumentOpt(XRayAlwaysInstrumentOption);