diff options
author | Clement Courbet <courbet@google.com> | 2018-05-14 09:01:22 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-05-14 09:01:22 +0000 |
commit | 7b7c27afca5605a543dadb72954bfc62f29d1a48 (patch) | |
tree | dd632f9770ba57539834ca4657de9d1f04a0a6d8 /llvm/tools/llvm-exegesis/lib/BenchmarkResult.h | |
parent | 617d4a8199c294228ef427dc6241b4d099fd8caf (diff) | |
download | bcm5719-llvm-7b7c27afca5605a543dadb72954bfc62f29d1a48.tar.gz bcm5719-llvm-7b7c27afca5605a543dadb72954bfc62f29d1a48.zip |
[llvm-exegesis] Allow lists of BenchmarkResults to be parsed as std::vector<BenchmarkResult>.
llvm-svn: 332221
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkResult.h')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkResult.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h index e906aea8555..d6b93f4703a 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h @@ -43,6 +43,7 @@ struct InstructionBenchmark { std::string Error; static InstructionBenchmark readYamlOrDie(llvm::StringRef Filename); + static std::vector<InstructionBenchmark> readYamlsOrDie(llvm::StringRef Filename); // Unfortunately this function is non const because of YAML traits. void writeYamlOrDie(const llvm::StringRef Filename); |