mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Teach bugpoint to kill optimization passes that run over the timeout limit,
which allows it to debug optimizer infinite loops. This patch is contributed by Nick Lewycky, thanks! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,9 +62,10 @@ std::string llvm::getPassesString(const std::vector<const PassInfo*> &Passes) {
|
||||
return Result;
|
||||
}
|
||||
|
||||
BugDriver::BugDriver(const char *toolname, bool as_child)
|
||||
BugDriver::BugDriver(const char *toolname, bool as_child, unsigned timeout)
|
||||
: ToolName(toolname), ReferenceOutputFile(OutputFile),
|
||||
Program(0), Interpreter(0), cbe(0), gcc(0), run_as_child(as_child) {}
|
||||
Program(0), Interpreter(0), cbe(0), gcc(0), run_as_child(as_child),
|
||||
Timeout(timeout) {}
|
||||
|
||||
|
||||
/// ParseInputFile - Given a bytecode or assembly input filename, parse and
|
||||
|
||||
Reference in New Issue
Block a user