1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

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 c19c96e06f
commit ef41afb1e8
2 changed files with 5 additions and 0 deletions

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