summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/InstPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-15 03:51:13 +0000
committerChris Lattner <sabre@nondot.org>2010-11-15 03:51:13 +0000
commit0fe7184ba156c87deee090001ba1d7af05e84fc1 (patch)
tree15e5a6a426a236c3c4adeb7b2f0eac61a8264f1e /lib/Target/PowerPC/InstPrinter
parentab638645647bef87ffe8d545fbcb1b69d3af45ce (diff)
downloadllvm-0fe7184ba156c87deee090001ba1d7af05e84fc1.tar.gz
llvm-0fe7184ba156c87deee090001ba1d7af05e84fc1.tar.bz2
llvm-0fe7184ba156c87deee090001ba1d7af05e84fc1.tar.xz
fix some fixme's, removing dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/InstPrinter')
-rw-r--r--lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp b/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
index 1cd3f00f20..941adfbf0d 100644
--- a/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
+++ b/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);