Fix bugpoint to run -llc-safe with -Xlinker.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Wed, 6 Jun 2007 23:10:56 +0000 (23:10 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Wed, 6 Jun 2007 23:10:56 +0000 (23:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37483 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ExecutionDriver.cpp
tools/bugpoint/ToolRunner.cpp

index f4a072b14aede9f0649b7c3e7ca348bc9f6dbe4e..9a670c950c0c15eb6f540c1e500076e98d89e2a6 100644 (file)
@@ -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);
index cc726676a31fdd1b4e00993fe2f8ac3e28cbca06..163c36acb058fcc4cb624a654f24ef04714675f6 100644 (file)
@@ -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__)