diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-09-06 04:04:13 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-09-06 04:04:13 +0000 |
commit | 46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3 (patch) | |
tree | b05f5a80e5937bf80d7ebf319fb9256620e12ba1 /llvm/tools/bugpoint/bugpoint.cpp | |
parent | bfa25bd1aca993e36222aec4b400bdeff37355ec (diff) | |
download | bcm5719-llvm-46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3.tar.gz bcm5719-llvm-46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3.zip |
bugpoint: Stop threading errors through APIs that never fail
This simplifies ListReducer and most of its subclasses by removing the
std::string &Error that was threaded through all of them but almost
never used. If we end up needing error handling in more places here we
can reinstate it using llvm::Error instead of these unwieldy strings.
The 2 cases (out of 12) that actually can hit the error cases are a
little bit awkward now, but those will clean up as I refactor this API
further.
llvm-svn: 280690
Diffstat (limited to 'llvm/tools/bugpoint/bugpoint.cpp')
-rw-r--r-- | llvm/tools/bugpoint/bugpoint.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/tools/bugpoint/bugpoint.cpp b/llvm/tools/bugpoint/bugpoint.cpp index fa4243fd057..46b7e6ef5a8 100644 --- a/llvm/tools/bugpoint/bugpoint.cpp +++ b/llvm/tools/bugpoint/bugpoint.cpp @@ -197,11 +197,5 @@ int main(int argc, char **argv) { sys::Process::PreventCoreFiles(); #endif - std::string Error; - bool Failure = D.run(Error); - if (!Error.empty()) { - errs() << Error; - return 1; - } - return Failure; + return D.run(); } |