diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-02-16 19:11:07 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-02-16 19:11:07 +0000 |
commit | d01defedf6fb29fd939cd04544f1a4df863c5b1a (patch) | |
tree | 733a2dc8defcffee4d3f267bfee7926ae8789a36 /llvm/tools/bugpoint/BugDriver.cpp | |
parent | 66cb162f92c156717c7800dbc9d636cc57ec15ab (diff) | |
download | bcm5719-llvm-d01defedf6fb29fd939cd04544f1a4df863c5b1a.tar.gz bcm5719-llvm-d01defedf6fb29fd939cd04544f1a4df863c5b1a.zip |
Add possibility to set memory limit for binaries run via libSystem. This
is especially needed for bugpoint. This partly implements PR688
llvm-svn: 34349
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp index 2b4d35d142e..b2a8f030c5f 100644 --- a/llvm/tools/bugpoint/BugDriver.cpp +++ b/llvm/tools/bugpoint/BugDriver.cpp @@ -64,10 +64,10 @@ std::string llvm::getPassesString(const std::vector<const PassInfo*> &Passes) { } BugDriver::BugDriver(const char *toolname, bool as_child, bool find_bugs, - unsigned timeout) + unsigned timeout, unsigned memlimit) : ToolName(toolname), ReferenceOutputFile(OutputFile), Program(0), Interpreter(0), cbe(0), gcc(0), run_as_child(as_child), - run_find_bugs(find_bugs), Timeout(timeout) {} + run_find_bugs(find_bugs), Timeout(timeout), MemoryLimit(memlimit) {} /// ParseInputFile - Given a bytecode or assembly input filename, parse and |