diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-06-17 16:06:00 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-06-17 16:06:00 +0000 |
commit | 34667519dc199d58b4556cfdc4e3ecb04365e53e (patch) | |
tree | bdfc15117967634c7f53fce1020b3910baadfc40 /llvm/lib/LTO/LTO.cpp | |
parent | 77bc3b65424afc42031a0859c91154acdc54feaa (diff) | |
download | bcm5719-llvm-34667519dc199d58b4556cfdc4e3ecb04365e53e.tar.gz bcm5719-llvm-34667519dc199d58b4556cfdc4e3ecb04365e53e.zip |
[Remarks] Extend -fsave-optimization-record to specify the format
Use -fsave-optimization-record=<format> to specify a different format
than the default, which is YAML.
For now, only YAML is supported.
llvm-svn: 363573
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index fe1bdfcaa96..4ed13701aa9 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -1339,14 +1339,14 @@ Error LTO::runThinLTO(AddStreamFn AddStream, NativeObjectCache Cache, Expected<std::unique_ptr<ToolOutputFile>> lto::setupOptimizationRemarks(LLVMContext &Context, StringRef RemarksFilename, - StringRef RemarksPasses, bool RemarksWithHotness, - int Count) { + StringRef RemarksPasses, StringRef RemarksFormat, + bool RemarksWithHotness, int Count) { std::string Filename = RemarksFilename; if (!Filename.empty() && Count != -1) Filename += ".thin." + llvm::utostr(Count) + ".yaml"; auto ResultOrErr = llvm::setupOptimizationRemarks( - Context, Filename, RemarksPasses, RemarksWithHotness); + Context, Filename, RemarksPasses, RemarksFormat, RemarksWithHotness); if (Error E = ResultOrErr.takeError()) return std::move(E); |