mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
handle GlobalValue::InternalLinkage in doFinalization
llvm-svn: 29417
This commit is contained in:
parent
799d4b373c
commit
0ea0399411
@ -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