From: Pavel Labath Date: Mon, 16 Jan 2017 16:38:23 +0000 (+0000) Subject: [llvm-xray] Fix android build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a1006b50d72c66e3f38594bdb728096d644c497;p=llvm [llvm-xray] Fix android build 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 --- diff --git a/tools/llvm-xray/xray-converter.cc b/tools/llvm-xray/xray-converter.cc index 31275e2902f..77d399ca6ae 100644 --- a/tools/llvm-xray/xray-converter.cc +++ b/tools/llvm-xray/xray-converter.cc @@ -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);