bugpoint: Stop threading errors through APIs that never fail
authorJustin Bogner <mail@justinbogner.com>
Tue, 6 Sep 2016 04:04:13 +0000 (04:04 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 6 Sep 2016 04:04:13 +0000 (04:04 +0000)
commit46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3
treeb05f5a80e5937bf80d7ebf319fb9256620e12ba1
parentbfa25bd1aca993e36222aec4b400bdeff37355ec
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
llvm/tools/bugpoint/BugDriver.cpp
llvm/tools/bugpoint/BugDriver.h
llvm/tools/bugpoint/CrashDebugger.cpp
llvm/tools/bugpoint/FindBugs.cpp
llvm/tools/bugpoint/ListReducer.h
llvm/tools/bugpoint/Miscompilation.cpp
llvm/tools/bugpoint/bugpoint.cpp