From: Chris Lattner Date: Tue, 16 Nov 2010 01:45:05 +0000 (+0000) Subject: Fix a bug I introduced in the ppc refactoring, which caused long X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b8efa6b475ed2f7d3797a8719cd27ab5fd64ae42;p=oota-llvm.git Fix a bug I introduced in the ppc refactoring, which caused long branches to be emitted as: bne cr0, 2 instead of: bne cr0, $+8 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119317 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index 9abf92c94cc..8b46fe1ffbc 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -291,6 +291,7 @@ def directbrtarget : Operand { let EncoderMethod = "getDirectBrEncoding"; } def condbrtarget : Operand { + let PrintMethod = "printBranchOperand"; let EncoderMethod = "getCondBrEncoding"; } def calltarget : Operand {