[llvm-commits] [llvm-gcc-4.2] r78041 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Mon Aug 3 20:46:35 PDT 2009
Author: void
Date: Mon Aug 3 22:46:34 2009
New Revision: 78041
URL: http://llvm.org/viewvc/llvm-project?rev=78041&view=rev
Log:
Oh yeah. Not everything that is "preserved" is LLVM_PRIVATE. . .
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=78041&r1=78040&r2=78041&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Aug 3 22:46:34 2009
@@ -1409,10 +1409,10 @@
// Handle used decls
if (DECL_PRESERVE_P (decl)) {
- if (DECL_LLVM_PRIVATE (decl))
- AttributeUsedGlobals.insert(GV);
- else if (DECL_LLVM_LINKER_PRIVATE (decl))
+ if (DECL_LLVM_LINKER_PRIVATE (decl))
AttributeCompilerUsedGlobals.insert(GV);
+ else
+ AttributeUsedGlobals.insert(GV);
}
// Add annotate attributes for globals
More information about the llvm-commits
mailing list