summaryrefslogtreecommitdiffstats
path: root/lib/Driver/XRayArgs.cpp
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2017-03-30 01:05:09 +0000
committerDean Michael Berris <dberris@google.com>2017-03-30 01:05:09 +0000
commite281ba0caab3fdb7018a01dd853ff1eee48f803c (patch)
tree0e7474eba2926c550aac41fc292228c0081a3b2d /lib/Driver/XRayArgs.cpp
parentca9fad67afe0d4c4757747486a116b3fca09e565 (diff)
[XRay][clang] Use llvm::to_string instead of std::string
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
Diffstat (limited to 'lib/Driver/XRayArgs.cpp')
-rw-r--r--lib/Driver/XRayArgs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/XRayArgs.cpp b/lib/Driver/XRayArgs.cpp
index 59a35f1115..0e0fe6ffa4 100644
--- a/lib/Driver/XRayArgs.cpp
+++ b/lib/Driver/XRayArgs.cpp
@@ -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);