make intel asmprinter use TRI::getAsmName instead of TRI::getName like

all the other targets.  Add support for weak/linkonce linkage so it doesn't
crash on basically all nontrivial testcases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-09-13 19:44:38 +00:00
parent cae05cb324
commit a1cb09e4b9
2 changed files with 21 additions and 15 deletions

View File

@@ -70,9 +70,7 @@ void X86ATTInstPrinter::printOperand(const MCInst *MI, unsigned OpNo,
const MCOperand &Op = MI->getOperand(OpNo);
if (Op.isReg()) {
O << '%';
unsigned Reg = Op.getReg();
O << TRI->getAsmName(Reg);
O << '%' << TRI->getAsmName(Op.getReg());
return;
} else if (Op.isImm()) {
O << '$' << Op.getImm();