[llvm-commits] [poolalloc] r39787 - /poolalloc/branches/SVA/lib/DSA/Local.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Jul 12 10:00:24 PDT 2007
Author: alenhar2
Date: Thu Jul 12 12:00:24 2007
New Revision: 39787
URL: http://llvm.org/viewvc/llvm-project?rev=39787&view=rev
Log:
ignore llvm.used
Modified:
poolalloc/branches/SVA/lib/DSA/Local.cpp
Modified: poolalloc/branches/SVA/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/SVA/lib/DSA/Local.cpp?rev=39787&r1=39786&r2=39787&view=diff
==============================================================================
--- poolalloc/branches/SVA/lib/DSA/Local.cpp (original)
+++ poolalloc/branches/SVA/lib/DSA/Local.cpp Thu Jul 12 12:00:24 2007
@@ -1696,7 +1696,7 @@
// Add initializers for all of the globals to the globals graph.
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
I != E; ++I)
- if (!I->isExternal())
+ if (!I->isExternal() && I->getName() != "llvm.used")
GGB.mergeInGlobalInitializer(I);
}
More information about the llvm-commits
mailing list