forked from OSchip/llvm-project
Add a change accidentally left out from r258100
Also remove an executable bit introduced by r258083. llvm-svn: 258101
This commit is contained in:
parent
8ecaf69291
commit
3f4f6f3ed6
|
@ -98,6 +98,10 @@ static cl::opt<bool> SetMergedModule(
|
||||||
static cl::opt<unsigned> Parallelism("j", cl::Prefix, cl::init(1),
|
static cl::opt<unsigned> Parallelism("j", cl::Prefix, cl::init(1),
|
||||||
cl::desc("Number of backend threads"));
|
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 {
|
namespace {
|
||||||
struct ModuleInfo {
|
struct ModuleInfo {
|
||||||
std::vector<bool> CanBeHidden;
|
std::vector<bool> CanBeHidden;
|
||||||
|
@ -278,6 +282,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
CodeGen.setDebugInfo(LTO_DEBUG_MODEL_DWARF);
|
CodeGen.setDebugInfo(LTO_DEBUG_MODEL_DWARF);
|
||||||
CodeGen.setTargetOptions(Options);
|
CodeGen.setTargetOptions(Options);
|
||||||
|
CodeGen.setShouldRestoreGlobalsLinkage(RestoreGlobalsLinkage);
|
||||||
|
|
||||||
llvm::StringSet<llvm::MallocAllocator> DSOSymbolsSet;
|
llvm::StringSet<llvm::MallocAllocator> DSOSymbolsSet;
|
||||||
for (unsigned i = 0; i < DSOSymbols.size(); ++i)
|
for (unsigned i = 0; i < DSOSymbols.size(); ++i)
|
||||||
|
|
Loading…
Reference in New Issue