diff options
Diffstat (limited to 'llvm/tools/opt/opt.cpp')
| -rw-r--r-- | llvm/tools/opt/opt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp index 06745b0cca0..2d80b479735 100644 --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -33,7 +33,6 @@ #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/LegacyPassNameParser.h" #include "llvm/IR/Module.h" -#include "llvm/IR/RemarkStreamer.h" #include "llvm/IR/Verifier.h" #include "llvm/IRReader/IRReader.h" #include "llvm/InitializePasses.h" @@ -564,8 +563,8 @@ int main(int argc, char **argv) { errs() << EC.message() << '\n'; return 1; } - Context.setRemarkStreamer(llvm::make_unique<RemarkStreamer>( - RemarksFilename, OptRemarkFile->os())); + Context.setDiagnosticsOutputFile( + llvm::make_unique<yaml::Output>(OptRemarkFile->os())); } // Load the input module... |

