mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user