diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-09-06 04:45:37 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-09-06 04:45:37 +0000 |
commit | 24dac6afe29ccbd4455dc44d6d6bc85b04bfbc31 (patch) | |
tree | 704eecd1c2c20265e79bd4f4863ba1f5232d67c7 /llvm/tools/bugpoint/BugDriver.h | |
parent | 46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3 (diff) | |
download | bcm5719-llvm-24dac6afe29ccbd4455dc44d6d6bc85b04bfbc31.tar.gz bcm5719-llvm-24dac6afe29ccbd4455dc44d6d6bc85b04bfbc31.zip |
Revert "bugpoint: Stop threading errors through APIs that never fail"
This isn't the right thing to do - it turns out a number of the APIs
that "never fail" just exit(1) if something bad happens. We can and
should thread Error through this instead.
That diff will make more sense with this reverted. Sorry for the
noise.
This reverts r280690
llvm-svn: 280691
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.h')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h index 7e03aa6512c..7ae2d5c2f99 100644 --- a/llvm/tools/bugpoint/BugDriver.h +++ b/llvm/tools/bugpoint/BugDriver.h @@ -85,7 +85,7 @@ public: /// variables are set up from command line arguments. The \p as_child argument /// indicates whether the driver is to run in parent mode or child mode. /// - bool run(); + bool run(std::string &ErrMsg); /// debugOptimizerCrash - This method is called when some optimizer pass /// crashes on input. It attempts to prune down the testcase to something @@ -96,7 +96,7 @@ public: /// debugCodeGeneratorCrash - This method is called when the code generator /// crashes on an input. It attempts to reduce the input as much as possible /// while still causing the code generator to crash. - bool debugCodeGeneratorCrash(); + bool debugCodeGeneratorCrash(std::string &Error); /// debugMiscompilation - This method is used when the passes selected are not /// crashing, but the generated output is semantically different from the @@ -266,7 +266,8 @@ public: /// If the passes did not compile correctly, output the command required to /// recreate the failure. This returns true if a compiler error is found. /// - bool runManyPasses(const std::vector<std::string> &AllPasses); + bool runManyPasses(const std::vector<std::string> &AllPasses, + std::string &ErrMsg); /// writeProgramToFile - This writes the current "Program" to the named /// bitcode file. If an error occurs, true is returned. |