diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-02-18 21:02:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-02-18 21:02:04 +0000 |
| commit | ead1dff00bd7783b41fca52024353a463f6046f8 (patch) | |
| tree | b82ef500a1d228e198f07b4699b186f91e0dfa7b /llvm/tools/bugpoint/CrashDebugger.cpp | |
| parent | 03d993b2650d6fbd2787ac9df9dbd04f0e7356b6 (diff) | |
| download | bcm5719-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.cpp | 15 |
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; +} |

