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 | 025262692a6710de29a48e2b3905672cd12d13d2 (patch) | |
| tree | 1730e50e0aa5132a62f15c28d86918b2ff5e087d /tools/bugpoint/CrashDebugger.cpp | |
| parent | a3de11783f04a53ffb625a7ced7d6080705c9762 (diff) | |
Add a stub for debugging code generator crashes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
| -rw-r--r-- | tools/bugpoint/CrashDebugger.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp index ecb17342cb..92b8f7c12c 100644 --- a/tools/bugpoint/CrashDebugger.cpp +++ b/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; +} |
