summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/CrashDebugger.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-18 21:02:04 +0000
committerChris Lattner <sabre@nondot.org>2004-02-18 21:02:04 +0000
commitead1dff00bd7783b41fca52024353a463f6046f8 (patch)
treeb82ef500a1d228e198f07b4699b186f91e0dfa7b /llvm/tools/bugpoint/CrashDebugger.cpp
parent03d993b2650d6fbd2787ac9df9dbd04f0e7356b6 (diff)
downloadbcm5719-llvm-ead1dff00bd7783b41fca52024353a463f6046f8.tar.gz
bcm5719-llvm-ead1dff00bd7783b41fca52024353a463f6046f8.zip
Add a stub for debugging code generator crashes
llvm-svn: 11602
Diffstat (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--llvm/tools/bugpoint/CrashDebugger.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp
index ecb17342cb7..92b8f7c12c8 100644
--- a/llvm/tools/bugpoint/CrashDebugger.cpp
+++ b/llvm/tools/bugpoint/CrashDebugger.cpp
@@ -257,11 +257,11 @@ bool ReduceCrashingBlocks::TestBlocks(std::vector<BasicBlock*> &BBs) {
return false;
}
-/// debugCrash - This method is called when some pass crashes on input. It
-/// attempts to prune down the testcase to something reasonable, and figure
+/// debugOptimizerCrash - This method is called when some pass crashes on input.
+/// It attempts to prune down the testcase to something reasonable, and figure
/// out exactly which pass is crashing.
///
-bool BugDriver::debugCrash() {
+bool BugDriver::debugOptimizerCrash() {
bool AnyReduction = false;
std::cout << "\n*** Debugging optimizer crash!\n";
@@ -408,3 +408,12 @@ bool BugDriver::debugCrash() {
return false;
}
+
+
+/// 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 BugDriver::debugCodeGeneratorCrash() {
+
+ return false;
+}
OpenPOWER on IntegriCloud