diff options
author | Pavel Labath <labath@google.com> | 2017-01-16 16:38:23 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-01-16 16:38:23 +0000 |
commit | 8a1006b50d72c66e3f38594bdb728096d644c497 (patch) | |
tree | 55764e9d87e0f425edc4714bdb84ae5de40392d4 | |
parent | a7959e565aef2e8b76e2bf351b4ee1439cc5e367 (diff) |
[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
-rw-r--r-- | tools/llvm-xray/xray-converter.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |