aboutsummaryrefslogtreecommitdiffstats
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
commit18f54c07e13837fe36531f4a6fe02ca9fd10ebf3 (patch)
treecba37985d9a5e62e80b711cd9cc640ad87c315d2
parent6f411dfad902a8729363eec8486590542ec2976c (diff)
downloadexternal_llvm-18f54c07e13837fe36531f4a6fe02ca9fd10ebf3.zip
external_llvm-18f54c07e13837fe36531f4a6fe02ca9fd10ebf3.tar.gz
external_llvm-18f54c07e13837fe36531f4a6fe02ca9fd10ebf3.tar.bz2
Don't call SectionForGlobal for hasAvailableExternallyLinkage()
variables either. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77844 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PIC16/PIC16AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp
index f0e4cba..e98cf41 100644
--- a/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/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());