Copy and paste error. An initialized global cannot be a weak reference.

llvm-svn: 32075
This commit is contained in:
Evan Cheng 2006-12-01 17:39:22 +00:00
parent 8f43fbf759
commit 1d611158eb

View File

@ -604,9 +604,6 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
O << "\t\t; '" << I->getName() << "'\n";
} else {
switch (I->getLinkage()) {
case GlobalValue::ExternalWeakLinkage:
O << "\t.weak_reference " << name << "\n";
break;
case GlobalValue::LinkOnceLinkage:
case GlobalValue::WeakLinkage:
O << "\t.globl " << name << '\n'