diff options
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llc/llc.cpp | 5 | ||||
| -rw-r--r-- | llvm/tools/opt/opt.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index a566d15cd81..ae51eef9e9c 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -31,7 +31,6 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" -#include "llvm/IR/RemarkStreamer.h" #include "llvm/IR/Verifier.h" #include "llvm/IRReader/IRReader.h" #include "llvm/MC/SubtargetFeature.h" @@ -334,8 +333,8 @@ int main(int argc, char **argv) { WithColor::error(errs(), argv[0]) << EC.message() << '\n'; return 1; } - Context.setRemarkStreamer( - llvm::make_unique<RemarkStreamer>(RemarksFilename, YamlFile->os())); + Context.setDiagnosticsOutputFile( + llvm::make_unique<yaml::Output>(YamlFile->os())); } if (InputLanguage != "" && InputLanguage != "ir" && 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... |

