[llvm-commits] [dragonegg] r95088 - /dragonegg/trunk/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Tue Feb 2 06:22:10 PST 2010
Author: baldrick
Date: Tue Feb 2 08:22:08 2010
New Revision: 95088
URL: http://llvm.org/viewvc/llvm-project?rev=95088&view=rev
Log:
Emit static variables even if they are not public and appear not to be used:
they might be the target of an alias.
Modified:
dragonegg/trunk/llvm-backend.cpp
Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=95088&r1=95087&r2=95088&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Tue Feb 2 08:22:08 2010
@@ -1854,7 +1854,7 @@
struct varpool_node *vnode;
FOR_EACH_STATIC_VARIABLE (vnode) {
tree var = vnode->decl;
- if (TREE_CODE(var) == VAR_DECL && TREE_PUBLIC(var))
+ if (TREE_CODE(var) == VAR_DECL)
emit_global(var);
}
More information about the llvm-commits
mailing list