diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-02 01:18:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-02 01:18:44 +0000 |
commit | 18f54c07e13837fe36531f4a6fe02ca9fd10ebf3 (patch) | |
tree | cba37985d9a5e62e80b711cd9cc640ad87c315d2 | |
parent | 6f411dfad902a8729363eec8486590542ec2976c (diff) | |
download | external_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.cpp | 2 |
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()); |