1
0
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:
Rafael Espindola 2006-07-31 20:38:13 +00:00
parent 799d4b373c
commit 0ea0399411

View File

@ -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);
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);