diff options
-rw-r--r-- | llvm/include/llvm/Config/config.h.cmake | 4 | ||||
-rw-r--r-- | llvm/tools/bugpoint/Miscompilation.cpp | 8 | ||||
-rw-r--r-- | llvm/tools/bugpoint/ToolRunner.cpp | 3 |
3 files changed, 2 insertions, 13 deletions
diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake index 663fb62d524..117d8c4d54a 100644 --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -120,10 +120,6 @@ /* Define to 1 if you have the <link.h> header file. */ #cmakedefine HAVE_LINK_H ${HAVE_LINK_H} -/* Define if you can use -Wl,-R. to pass -R. to the linker, in order to add - the current directory to the dynamic linker search path. */ -#undef HAVE_LINK_R - /* Define to 1 if you have the <mach/mach.h> header file. */ #cmakedefine HAVE_MACH_MACH_H ${HAVE_MACH_MACH_H} diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp index 20acb304a02..792fab07bf1 100644 --- a/llvm/tools/bugpoint/Miscompilation.cpp +++ b/llvm/tools/bugpoint/Miscompilation.cpp @@ -1084,12 +1084,8 @@ Error BugDriver::debugCodeGenerator() { } else { outs() << " llc " << TestModuleBC << " -o " << TestModuleBC << ".s\n"; outs() << " cc " << *SharedObject << " " << TestModuleBC.str() << ".s -o " - << TestModuleBC << ".exe"; -#if defined(HAVE_LINK_R) - outs() << " -Wl,-R."; -#endif - outs() << "\n"; - outs() << " " << TestModuleBC << ".exe"; + << TestModuleBC << ".exe\n"; + outs() << " ./" << TestModuleBC << ".exe"; } for (unsigned i = 0, e = InputArgv.size(); i != e; ++i) outs() << " " << InputArgv[i]; diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp index 9bd5eabf00f..4633d643733 100644 --- a/llvm/tools/bugpoint/ToolRunner.cpp +++ b/llvm/tools/bugpoint/ToolRunner.cpp @@ -679,9 +679,6 @@ Expected<int> CC::ExecuteProgram(const std::string &ProgramFile, CCArgs.push_back("-lm"); // Hard-code the math library... CCArgs.push_back("-O2"); // Optimize the program a bit... -#if defined(HAVE_LINK_R) - CCArgs.push_back("-Wl,-R."); // Search this dir for .so files -#endif if (TargetTriple.getArch() == Triple::sparc) CCArgs.push_back("-mcpu=v9"); CCArgs.push_back(nullptr); // NULL terminator |