summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-02 01:18:44 +0000
committerDan Gohman <gohman@apple.com>2009-08-02 01:18:44 +0000
commit321dc97adf5379b993687ee7830ef7a1c038a04d (patch)
treee767f25c334b2d0f961f956159c18a460ab70429 /llvm/lib/Target
parenta17d2e5c216d9534a8f007a5e9f52c212452dfc8 (diff)
downloadbcm5719-llvm-321dc97adf5379b993687ee7830ef7a1c038a04d.tar.gz
bcm5719-llvm-321dc97adf5379b993687ee7830ef7a1c038a04d.zip
Don't call SectionForGlobal for hasAvailableExternallyLinkage()
variables either. llvm-svn: 77844
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp
index f0e4cbaae6a..e98cf41b540 100644
--- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp
@@ -238,7 +238,7 @@ bool PIC16AsmPrinter::doInitialization(Module &M) {
// 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());
OpenPOWER on IntegriCloud