diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-08-30 21:07:33 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-08-30 21:07:33 +0000 |
commit | 86d49563a65b3990d8ea7dac62d9222c1fd3b1cf (patch) | |
tree | f9dcee17f2eddae2f0dff796249924549c3b9233 /lib/Transforms/IPO | |
parent | e179b31bfcb6a49de5fe7df7586a2aade9191e08 (diff) | |
download | external_llvm-86d49563a65b3990d8ea7dac62d9222c1fd3b1cf.zip external_llvm-86d49563a65b3990d8ea7dac62d9222c1fd3b1cf.tar.gz external_llvm-86d49563a65b3990d8ea7dac62d9222c1fd3b1cf.tar.bz2 |
Compulsive reformatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/Internalize.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index 26743dc..29d1a89 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -141,8 +141,11 @@ bool InternalizePass::runOnModule(Module &M) { !I->hasLocalLinkage() && // Can't already have internal linkage !ExternalNames.count(I->getName())) {// Not marked to keep external? I->setLinkage(GlobalValue::InternalLinkage); - // Remove a callgraph edge from the external node to this function. - if (ExternalNode) ExternalNode->removeOneAbstractEdgeTo((*CG)[I]); + + if (ExternalNode) + // Remove a callgraph edge from the external node to this function. + ExternalNode->removeOneAbstractEdgeTo((*CG)[I]); + Changed = true; ++NumFunctions; DEBUG(dbgs() << "Internalizing func " << I->getName() << "\n"); |