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 | 41396302126c24f1d5231e191852ebf2ff37fe23 (patch) | |
tree | 0915f8314b24a1a3e49cd1ba9136be7a6dbe7416 /tools/bugpoint/ExecutionDriver.cpp | |
parent | 414c0c43d392fab3bed731482186e0022fe4dc18 (diff) | |
download | llvm-41396302126c24f1d5231e191852ebf2ff37fe23.tar.gz llvm-41396302126c24f1d5231e191852ebf2ff37fe23.tar.bz2 llvm-41396302126c24f1d5231e191852ebf2ff37fe23.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 2eded1788d..57f12d5af8 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/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); } |