mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
handle GlobalValue::InternalLinkage in doFinalization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f55914a529
commit
6d581e8d15
@ -207,8 +207,16 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
||||
unsigned Size = TD->getTypeSize(C->getType());
|
||||
unsigned Align = TD->getTypeAlignment(C->getType());
|
||||
|
||||
assert (I->getLinkage() == GlobalValue::ExternalLinkage);
|
||||
O << "\t.globl " << name << "\n";
|
||||
switch (I->getLinkage()) {
|
||||
default:
|
||||
assert(0 && "Unknown linkage type!");
|
||||
break;
|
||||
case GlobalValue::ExternalLinkage:
|
||||
O << "\t.globl " << name << "\n";
|
||||
break;
|
||||
case GlobalValue::InternalLinkage:
|
||||
break;
|
||||
}
|
||||
|
||||
assert (!C->isNullValue());
|
||||
SwitchToDataSection(".data", I);
|
||||
|
Loading…
Reference in New Issue
Block a user