Add a change accidentally left out from r258100

Also remove an executable bit introduced by r258083.

llvm-svn: 258101
This commit is contained in:
Tobias Edler von Koch 2016-01-18 23:35:24 +00:00
parent 8ecaf69291
commit 3f4f6f3ed6
2 changed files with 5 additions and 0 deletions

0
llvm/lib/Transforms/Utils/SplitModule.cpp Executable file → Normal file
View File

View 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)