diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-27 20:35:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-27 20:35:36 +0000 |
commit | 130e2a361147a31ae631d3648afdd95a5c0d40f2 (patch) | |
tree | 3d835f83006339a593d7127dbeae47cd8e3bf6c8 /tools/bugpoint/ExecutionDriver.cpp | |
parent | 4df24f2caf3a6ba253f9e960ace777fe7873972b (diff) | |
download | llvm-130e2a361147a31ae631d3648afdd95a5c0d40f2.tar.gz llvm-130e2a361147a31ae631d3648afdd95a5c0d40f2.tar.bz2 llvm-130e2a361147a31ae631d3648afdd95a5c0d40f2.tar.xz |
Pass -Xlinker flags to gcc when it builds the shared object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 5743804a14..453833eb8d 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -288,7 +288,7 @@ std::string BugDriver::compileSharedObject(const std::string &BytecodeFile) { std::string SharedObjectFile; if (gcc->MakeSharedObject(OutputCFile.toString(), GCC::CFile, - SharedObjectFile)) + SharedObjectFile, AdditionalLinkerArgs)) exit(1); // Remove the intermediate C file @@ -308,7 +308,7 @@ bool BugDriver::diffProgram(const std::string &BytecodeFile, bool ProgramExitedNonzero; // Execute the program, generating an output file... - sys::Path Output (executeProgram("", BytecodeFile, SharedObject, 0, + sys::Path Output(executeProgram("", BytecodeFile, SharedObject, 0, &ProgramExitedNonzero)); // If we're checking the program exit code, assume anything nonzero is bad. |