forked from OSchip/llvm-project
Avoid making external global variables internal
llvm-svn: 4059
This commit is contained in:
parent
31ae011e43
commit
8e2c197c17
|
@ -30,7 +30,8 @@ struct FunctionExtractorPass : public Pass {
|
|||
bool run(Module &M) {
|
||||
// Mark all global variables to be internal
|
||||
for (Module::giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
||||
I->setInternalLinkage(true);
|
||||
if (!I->isExternal())
|
||||
I->setInternalLinkage(true);
|
||||
|
||||
Function *Named = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue