diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-06-14 16:20:51 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-06-14 16:20:51 +0000 |
| commit | 7a21113ce800125a9f101701b0d2c279b5547e0a (patch) | |
| tree | 7fb6f16af3e262cd15f69f385a489cda63c852bd /llvm/lib/LTO/LTOBackend.cpp | |
| parent | cabce71845f442fdf5fde2459b94efae8aef241f (diff) | |
| download | llvm-7a21113ce800125a9f101701b0d2c279b5547e0a.zip llvm-7a21113ce800125a9f101701b0d2c279b5547e0a.tar.gz llvm-7a21113ce800125a9f101701b0d2c279b5547e0a.tar.bz2 | |
Reland: [Remarks] Refactor optimization remarks setup
* Add a common function to setup opt-remarks
* Rename common options to the same names
* Add error types to distinguish between file errors and regex errors
llvm-svn: 363415
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
| -rw-r--r-- | llvm/lib/LTO/LTOBackend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp index 9c2d0ed..317d016 100644 --- a/llvm/lib/LTO/LTOBackend.cpp +++ b/llvm/lib/LTO/LTOBackend.cpp @@ -22,6 +22,7 @@ #include "llvm/Bitcode/BitcodeWriter.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/PassManager.h" +#include "llvm/IR/RemarkStreamer.h" #include "llvm/IR/Verifier.h" #include "llvm/LTO/LTO.h" #include "llvm/MC/SubtargetFeature.h" @@ -32,9 +33,9 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "llvm/Support/Program.h" -#include "llvm/Support/raw_ostream.h" #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/ThreadPool.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Transforms/IPO.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" |
