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/llvm-ld/llvm-ld.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/llvm-ld') diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index bb1130bfd1..207f0cbb4f 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -244,7 +244,7 @@ static int GenerateAssembly(const std::string &OutputFilename, args.push_back(InputFilename.c_str()); args.push_back(0); - return sys::Program::ExecuteAndWait(llc,&args[0],0,0,0,&ErrMsg); + return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg); } /// GenerateCFile - generates a C source file from the specified bytecode file. @@ -261,7 +261,7 @@ static int GenerateCFile(const std::string &OutputFile, args.push_back(OutputFile.c_str()); args.push_back(InputFile.c_str()); args.push_back(0); - return sys::Program::ExecuteAndWait(llc, &args[0],0,0,0,&ErrMsg); + return sys::Program::ExecuteAndWait(llc, &args[0], 0, 0, 0, 0, &ErrMsg); } /// GenerateNative - generates a native object file from the @@ -342,7 +342,7 @@ static int GenerateNative(const std::string &OutputFilename, // Run the compiler to assembly and link together the program. int R = sys::Program::ExecuteAndWait( - gcc, &args[0], (const char**)clean_env,0,0,&ErrMsg); + gcc, &args[0], (const char**)clean_env, 0, 0, 0, &ErrMsg); delete [] clean_env; return R; } @@ -516,7 +516,7 @@ int main(int argc, char **argv, char **envp) { args[1] = RealBytecodeOutput.c_str(); args[2] = tmp_output.c_str(); args[3] = 0; - if (0 == sys::Program::ExecuteAndWait(prog, args, 0,0,0, &ErrMsg)) { + if (0 == sys::Program::ExecuteAndWait(prog, args, 0,0,0,0, &ErrMsg)) { if (tmp_output.isBytecodeFile()) { sys::Path target(RealBytecodeOutput); target.eraseFromDisk(); -- cgit v1.2.3