[llvm] r292143 - [llvm-xray] Fix android build
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 08:38:23 PST 2017
Author: labath
Date: Mon Jan 16 10:38:23 2017
New Revision: 292143
URL: http://llvm.org/viewvc/llvm-project?rev=292143&view=rev
Log:
[llvm-xray] Fix android build
std::to_string is not available in the android ndk. Using llvm::to_string
instead.
Committing as obvious.
Modified:
llvm/trunk/tools/llvm-xray/xray-converter.cc
Modified: llvm/trunk/tools/llvm-xray/xray-converter.cc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-converter.cc?rev=292143&r1=292142&r2=292143&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-xray/xray-converter.cc (original)
+++ llvm/trunk/tools/llvm-xray/xray-converter.cc Mon Jan 16 10:38:23 2017
@@ -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
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);
More information about the llvm-commits
mailing list