From 9ba8a76f8baaa1092d60ccfbc04e7efdc207c98f Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Fri, 16 Feb 2007 19:11:07 +0000 Subject: Add possibility to set memory limit for binaries run via libSystem. This is especially needed for bugpoint. This partly implements PR688 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34349 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/ExecutionDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/bugpoint/ExecutionDriver.cpp') diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 92e7737600..f4a072b14a 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -263,11 +263,11 @@ std::string BugDriver::executeProgram(std::string OutputFile, InterpreterSel == CBE_bug) RetVal = AI->ExecuteProgram(BytecodeFile, InputArgv, InputFile, OutputFile, AdditionalLinkerArgs, SharedObjs, - Timeout); + Timeout, MemoryLimit); else RetVal = AI->ExecuteProgram(BytecodeFile, InputArgv, InputFile, OutputFile, std::vector(), - SharedObjs, Timeout); + SharedObjs, Timeout, MemoryLimit); if (RetVal == -1) { std::cerr << ""; -- cgit v1.2.3