[llvm-commits] [llvm] r77844 - /llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp
Dan Gohman
gohman at apple.com
Sat Aug 1 18:18:44 PDT 2009
Author: djg
Date: Sat Aug 1 20:18:44 2009
New Revision: 77844
URL: http://llvm.org/viewvc/llvm-project?rev=77844&view=rev
Log:
Don't call SectionForGlobal for hasAvailableExternallyLinkage()
variables either.
Modified:
llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp
Modified: llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp?rev=77844&r1=77843&r2=77844&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp Sat Aug 1 20:18:44 2009
@@ -238,7 +238,7 @@
// Set the section names for all globals.
for (Module::global_iterator I = M.global_begin(), E = M.global_end();
I != E; ++I)
- if (!I->isDeclaration())
+ if (!I->isDeclaration() && !I->hasAvailableExternallyLinkage())
I->setSection(getObjFileLowering().
SectionForGlobal(I, Mang,TM)->getName());
More information about the llvm-commits
mailing list