diff options
author | Duncan Sands <baldrick@free.fr> | 2010-05-24 07:49:55 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-05-24 07:49:55 +0000 |
commit | e9cd6d069d7eb4c1b4bbe1e5503d2153267bf9d8 (patch) | |
tree | 995f69783943cf0f5d2fb56e5009755e39a569d5 /llvm/tools/bugpoint/ExecutionDriver.cpp | |
parent | 5d6a2e509fbbf51918ab8f218b3b7a20cd0ce4b7 (diff) | |
download | bcm5719-llvm-e9cd6d069d7eb4c1b4bbe1e5503d2153267bf9d8.tar.gz bcm5719-llvm-e9cd6d069d7eb4c1b4bbe1e5503d2153267bf9d8.zip |
Apply timeouts and memory limits in more places. In particular, when
bugpoint does "Running the code generator to test for a crash" this
gets you a crash if llc goes into an infinite loop or uses up vast
amounts of memory.
llvm-svn: 104485
Diffstat (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExecutionDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index 2eded1788d9..57f12d5af82 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -312,7 +312,7 @@ void BugDriver::compileProgram(Module *M, std::string *Error) { FileRemover BitcodeFileRemover(BitcodeFile, !SaveTemps); // Actually compile the program! - Interpreter->compileProgram(BitcodeFile.str(), Error); + Interpreter->compileProgram(BitcodeFile.str(), Error, Timeout, MemoryLimit); } |