]> granicus.if.org Git - llvm/commit
[llvm-opt-report] Improve error handling
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 13 Sep 2019 20:52:04 +0000 (20:52 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 13 Sep 2019 20:52:04 +0000 (20:52 +0000)
commit7ab0a1882b2587a59be344e7ce1f873fdd7ce6e8
tree914f3d41a73b52654a45aed890c1586668e444de
parent23e464e39563a885be487af9ca37487ff47c4531
[llvm-opt-report] Improve error handling

* std::move the error extracted from the parsing creation to avoid asserts
* print a newline after the error message
* create the parser from the metadata

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371895 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-opt-report/OptReport.cpp