summaryrefslogtreecommitdiff
path: root/tools/llvm-xray
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2017-02-14 22:49:49 +0000
committerDimitry Andric <dimitry@andric.com>2017-02-14 22:49:49 +0000
commit193dc0bf8409dd7c7908a2857d99996e9c4d7f9c (patch)
tree17b50a598f0d820831e0a7e0db3a9fde816b5107 /tools/llvm-xray
parente9b25f27d91c2fc45b38ce9df2dac6bc65cdda0c (diff)
Disable wrapping llvm-xray YAML output
Summary: The YAML output produced by llvm-xray is supposed to be wrapped at the arbitrary default of 70 columns set by `yaml:Output`. Unfortunately, the wrapping is rather unpredictable, and can easily go past the set number of columns, depending on the execution environment. To make the YAML output environment-independent, disable wrapping instead. Reviewers: dberris Reviewed By: dberris Subscribers: fhahn, llvm-commits Differential Revision: https://reviews.llvm.org/D29962 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-xray')
-rw-r--r--tools/llvm-xray/xray-converter.cc2
-rw-r--r--tools/llvm-xray/xray-extract.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-xray/xray-converter.cc b/tools/llvm-xray/xray-converter.cc
index b9756e4b5bd..96850f032bf 100644
--- a/tools/llvm-xray/xray-converter.cc
+++ b/tools/llvm-xray/xray-converter.cc
@@ -88,7 +88,7 @@ void TraceConverter::exportAsYAML(const Trace &Records, raw_ostream &OS) {
: llvm::to_string(R.FuncId),
R.TSC, R.TId});
}
- Output Out(OS);
+ Output Out(OS, nullptr, 0);
Out << Trace;
}
diff --git a/tools/llvm-xray/xray-extract.cc b/tools/llvm-xray/xray-extract.cc
index bf1f696de55..26e461869a0 100644
--- a/tools/llvm-xray/xray-extract.cc
+++ b/tools/llvm-xray/xray-extract.cc
@@ -60,7 +60,7 @@ void exportAsYAML(const InstrumentationMap &Map, raw_ostream &OS) {
YAMLSleds.push_back({*FuncId, Sled.Address, Sled.Function, Sled.Kind,
Sled.AlwaysInstrument});
}
- Output Out(OS);
+ Output Out(OS, nullptr, 0);
Out << YAMLSleds;
}