]> granicus.if.org Git - llvm/commit
Reland: [Remarks] Refactor optimization remarks setup
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 14 Jun 2019 16:20:51 +0000 (16:20 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 14 Jun 2019 16:20:51 +0000 (16:20 +0000)
commit6058aa9ef5f4a69ff08e99a2336d429781e1e2e6
treee19309318a8f00603a25fafaccd39cf9d91d9ba8
parenta70eff991780a931539f930876c550c3e0147809
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363415 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/RemarkStreamer.h
include/llvm/LTO/LTO.h
lib/IR/RemarkStreamer.cpp
lib/LTO/LTO.cpp
lib/LTO/LTOBackend.cpp
lib/LTO/LTOCodeGenerator.cpp
lib/LTO/ThinLTOCodeGenerator.cpp
tools/gold/gold-plugin.cpp
tools/llc/llc.cpp
tools/llvm-lto2/llvm-lto2.cpp
tools/opt/opt.cpp