Print stubs for external globals right.

llvm-svn: 28936
This commit is contained in:
Chris Lattner 2006-06-27 20:20:53 +00:00
parent 8aed3cc46b
commit 82ab3e21b1
1 changed files with 5 additions and 1 deletions

View File

@ -694,7 +694,11 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
E = GVStubs.end(); I != E; ++I) {
O << "L" << *I << "$non_lazy_ptr:\n";
O << "\t.indirect_symbol " << *I << "\n";
O << "\t.long\t0\n";
if (isPPC64)
O << "\t.quad\t0\n";
else
O << "\t.long\t0\n";
}
}