diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-15 03:51:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-15 03:51:13 +0000 |
commit | fd56ee2c40966117c96321f374a7861906b7f04a (patch) | |
tree | bbd24d9eb1a60421f95b81555f4bdb40964fe6be /llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | |
parent | aa4d03d1f55671613e9290a061def429319b0d51 (diff) | |
download | bcm5719-llvm-fd56ee2c40966117c96321f374a7861906b7f04a.tar.gz bcm5719-llvm-fd56ee2c40966117c96321f374a7861906b7f04a.zip |
fix some fixme's, removing dead code.
llvm-svn: 119114
Diffstat (limited to 'llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp index 1cd3f00f203..941adfbf0d9 100644 --- a/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp +++ b/llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp @@ -188,10 +188,7 @@ void PPCInstPrinter::printMemRegImm(const MCInst *MI, unsigned OpNo, raw_ostream &O) { printSymbolLo(MI, OpNo, O); O << '('; - assert(MI->getOperand(OpNo+1).isReg() && "Bad operand"); - // FIXME: Simplify. - if (MI->getOperand(OpNo+1).isReg() && - MI->getOperand(OpNo+1).getReg() == PPC::R0) + if (MI->getOperand(OpNo+1).getReg() == PPC::R0) O << "0"; else printOperand(MI, OpNo+1, O); @@ -206,10 +203,7 @@ void PPCInstPrinter::printMemRegImmShifted(const MCInst *MI, unsigned OpNo, printSymbolLo(MI, OpNo, O); O << '('; - assert(MI->getOperand(OpNo+1).isReg() && "Bad operand"); - // FIXME: Simplify. - if (MI->getOperand(OpNo+1).isReg() && - MI->getOperand(OpNo+1).getReg() == PPC::R0) + if (MI->getOperand(OpNo+1).getReg() == PPC::R0) O << "0"; else printOperand(MI, OpNo+1, O); |