OSDN Git Service

Add a change accidentally left out from r258100
authorTobias Edler von Koch <tobias@codeaurora.org>
Mon, 18 Jan 2016 23:35:24 +0000 (23:35 +0000)
committerTobias Edler von Koch <tobias@codeaurora.org>
Mon, 18 Jan 2016 23:35:24 +0000 (23:35 +0000)
Also remove an executable bit introduced by r258083.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258101 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SplitModule.cpp [changed mode: 0755->0644]
tools/llvm-lto/llvm-lto.cpp

old mode 100755 (executable)
new mode 100644 (file)
index 2320511..55c0f48 100644 (file)
@@ -98,6 +98,10 @@ static cl::opt<bool> SetMergedModule(
 static cl::opt<unsigned> Parallelism("j", cl::Prefix, cl::init(1),
                                      cl::desc("Number of backend threads"));
 
+static cl::opt<bool> RestoreGlobalsLinkage(
+    "restore-linkage", cl::init(false),
+    cl::desc("Restore original linkage of globals prior to CodeGen"));
+
 namespace {
 struct ModuleInfo {
   std::vector<bool> CanBeHidden;
@@ -278,6 +282,7 @@ int main(int argc, char **argv) {
 
   CodeGen.setDebugInfo(LTO_DEBUG_MODEL_DWARF);
   CodeGen.setTargetOptions(Options);
+  CodeGen.setShouldRestoreGlobalsLinkage(RestoreGlobalsLinkage);
 
   llvm::StringSet<llvm::MallocAllocator> DSOSymbolsSet;
   for (unsigned i = 0; i < DSOSymbols.size(); ++i)