]> granicus.if.org Git - llvm/commitdiff
[llvm-xray] Fix android build
authorPavel Labath <labath@google.com>
Mon, 16 Jan 2017 16:38:23 +0000 (16:38 +0000)
committerPavel Labath <labath@google.com>
Mon, 16 Jan 2017 16:38:23 +0000 (16:38 +0000)
std::to_string is not available in the android ndk. Using llvm::to_string
instead.

Committing as obvious.

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

tools/llvm-xray/xray-converter.cc

index 31275e2902f29e9df72cd7f622ac388b7df8e53d..77d399ca6ae797c4754cde4ceade71b4ed24e924 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/DebugInfo/Symbolize/Symbolize.h"
 #include "llvm/Support/EndianStream.h"
 #include "llvm/Support/FileSystem.h"
+#include "llvm/Support/ScopedPrinter.h"
 #include "llvm/Support/YAMLTraits.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/XRay/Trace.h"
@@ -95,7 +96,7 @@ void TraceConverter::exportAsYAML(const Trace &Records, raw_ostream &OS) {
   for (const auto &R : Records) {
     Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId,
                              Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId)
-                                       : std::to_string(R.FuncId),
+                                       : llvm::to_string(R.FuncId),
                              R.TSC, R.TId});
   }
   Output Out(OS);