summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-08-17 14:36:40 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-08-17 14:36:40 +0000
commitbb56755f153a83387fa6c7fa0a6d7d540da41633 (patch)
treefbff5a5ba4e67a2af5bca0cf4018a59eeafb6af7 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent50166f81072c8aba7690b0a57e751393732b64e8 (diff)
downloadbcm5719-llvm-bb56755f153a83387fa6c7fa0a6d7d540da41633.tar.gz
bcm5719-llvm-bb56755f153a83387fa6c7fa0a6d7d540da41633.zip
[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API.
urrently we have the following functions for error reporting: -- LLVM_ATTRIBUTE_NORETURN void reportError(Twine Msg); void reportError(Error Err, StringRef Input); void reportWarning(Twine Msg); void reportWarning(StringRef Input, Error Err); void warn(llvm::Error Err); void error(std::error_code EC); --- Problems are: naming is inconsistent, arguments order is inconsistent, some of the functions looks excessive. After applying this patch we have: --- LLVM_ATTRIBUTE_NORETURN void reportError(Error Err, StringRef Input); LLVM_ATTRIBUTE_NORETURN void reportError(std::error_code EC, StringRef Input); void reportWarning(Error Err, StringRef Input); --- I'd be happy to remove reportError(std::error_code EC, StringRef Input) too, but it is used by COFF heavily. Test cases were updated, they show an improvement introduced. Differential revision: https://reviews.llvm.org/D66286 llvm-svn: 369190
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud