diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2018-09-25 14:48:24 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2018-09-25 14:48:24 +0000 |
commit | 6078f82241cf23e7e33f3da110e50e5d20b84348 (patch) | |
tree | b170524e22f7abc9d3a5d7fc7b421d074da8f35a /llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp | |
parent | 46ab89a0d0b4bc298dc81b7e2508e142ca58e285 (diff) | |
download | llvm-6078f82241cf23e7e33f3da110e50e5d20b84348.zip llvm-6078f82241cf23e7e33f3da110e50e5d20b84348.tar.gz llvm-6078f82241cf23e7e33f3da110e50e5d20b84348.tar.bz2 |
[llvm-exegesis] Fix missing document separator in YAML output.
Reviewers: courbet
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D52496
llvm-svn: 342981
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp index 0475228..acf2c54 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp @@ -269,7 +269,9 @@ void InstructionBenchmark::writeYamlTo(const LLVMState &State, llvm::raw_ostream &OS) { llvm::yaml::Output Yout(OS); YamlContext Context(State); + Yout.beginDocuments(); llvm::yaml::yamlize(Yout, *this, /*unused*/ true, Context); + Yout.endDocuments(); } void InstructionBenchmark::readYamlFrom(const LLVMState &State, |