From f04823af30ecc5607e63540c9a6fd8979b1080ee Mon Sep 17 00:00:00 2001 From: Lauro Ramos Venancio Date: Wed, 6 Jun 2007 23:10:56 +0000 Subject: [PATCH] Fix bugpoint to run -llc-safe with -Xlinker. llvm-svn: 37483 --- llvm/tools/bugpoint/ExecutionDriver.cpp | 2 +- llvm/tools/bugpoint/ToolRunner.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index f4a072b14aed..9a670c950c0c 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -260,7 +260,7 @@ std::string BugDriver::executeProgram(std::string OutputFile, // as the GCCArgs. int RetVal = 0; if (InterpreterSel == RunLLC || InterpreterSel == RunCBE || - InterpreterSel == CBE_bug) + InterpreterSel == CBE_bug || InterpreterSel == LLC_Safe) RetVal = AI->ExecuteProgram(BytecodeFile, InputArgv, InputFile, OutputFile, AdditionalLinkerArgs, SharedObjs, Timeout, MemoryLimit); diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp index cc726676a31f..163c36acb058 100644 --- a/llvm/tools/bugpoint/ToolRunner.cpp +++ b/llvm/tools/bugpoint/ToolRunner.cpp @@ -555,6 +555,8 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType, GCCArgs.push_back(fileType == AsmFile ? "assembler" : "c"); GCCArgs.push_back("-fno-strict-aliasing"); GCCArgs.push_back(InputFile.c_str()); // Specify the input filename. + GCCArgs.push_back("-x"); + GCCArgs.push_back("none"); #if defined(sparc) || defined(__sparc__) || defined(__sparcv9) GCCArgs.push_back("-G"); // Compile a shared library, `-G' for Sparc #elif defined(__APPLE__) -- GitLab