| 1 | diff -u -r ../llvm-4.0.0.src/tools/llvm-xray/xray-converter.cc ./tools/llvm-xray/xray-converter.cc |
| 2 | --- ../llvm-4.0.0.src/tools/llvm-xray/xray-converter.cc 2017-02-27 18:01:04.000000000 +0100 |
| 3 | +++ ./tools/llvm-xray/xray-converter.cc 2017-03-14 18:30:35.979011376 +0100 |
| 4 | @@ -14,6 +14,7 @@ |
| 5 | |
| 6 | #include "xray-extract.h" |
| 7 | #include "xray-registry.h" |
| 8 | +#include "llvm/ADT/StringExtras.h" |
| 9 | #include "llvm/DebugInfo/Symbolize/Symbolize.h" |
| 10 | #include "llvm/Support/EndianStream.h" |
| 11 | #include "llvm/Support/FileSystem.h" |
| 12 | @@ -95,7 +96,7 @@ |
| 13 | for (const auto &R : Records) { |
| 14 | Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId, |
| 15 | Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId) |
| 16 | - : std::to_string(R.FuncId), |
| 17 | + : llvm::utostr(R.FuncId), |
| 18 | R.TSC, R.TId}); |
| 19 | } |
| 20 | Output Out(OS, nullptr, 0); |