From 025262692a6710de29a48e2b3905672cd12d13d2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 18 Feb 2004 21:02:04 +0000 Subject: 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 --- tools/bugpoint/CrashDebugger.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'tools/bugpoint/CrashDebugger.cpp') 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 &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; +} -- cgit v1.2.3-70-g09d2