mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
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
This commit is contained in:
parent
6f411dfad9
commit
18f54c07e1
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user