summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-03-06 14:52:37 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2019-03-06 14:52:37 +0000
commit6b622ebea01b3ece8b8e475f15c5ce16a4cdc9f8 (patch)
treea8403fa94e185865d47d85bce9cdedd7cd0a1c62 /llvm/tools/opt
parent2508fcff605ab872d78edb95edb95aca67b51d28 (diff)
downloadbcm5719-llvm-6b622ebea01b3ece8b8e475f15c5ce16a4cdc9f8.tar.gz
bcm5719-llvm-6b622ebea01b3ece8b8e475f15c5ce16a4cdc9f8.zip
Revert "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer"
This reverts commit 2e8c4997a2089f8228c843fd81b148d903472e02. Breaks bots. llvm-svn: 355511
Diffstat (limited to 'llvm/tools/opt')
-rw-r--r--llvm/tools/opt/opt.cpp5
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...
OpenPOWER on IntegriCloud