From: Jim Grosbach Date: Thu, 9 Dec 2010 19:04:53 +0000 (+0000) Subject: Rename the encoder method for t_cbtarget to match. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=027d6e8d1ca04e4096fb3a27579b861d861466c5;p=oota-llvm.git Rename the encoder method for t_cbtarget to match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121399 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index 3892948d622..02d1631a171 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -175,7 +175,7 @@ namespace { const { return 0; } unsigned getThumbBLXTargetOpValue(const MachineInstr &MI, unsigned Op) const { return 0; } - unsigned getThumbBRTargetOpValue(const MachineInstr &MI, unsigned Op) + unsigned getThumbCBTargetOpValue(const MachineInstr &MI, unsigned Op) const { return 0; } unsigned getBranchTargetOpValue(const MachineInstr &MI, unsigned Op) const { return 0; } diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index df85690cb76..5a77aa3de4a 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -75,7 +75,7 @@ def t_imm_s4 : Operand { // Define Thumb specific addressing modes. def t_cbtarget : Operand { - let EncoderMethod = "getThumbBRTargetOpValue"; + let EncoderMethod = "getThumbCBTargetOpValue"; } def t_bltarget : Operand { diff --git a/lib/Target/ARM/ARMMCCodeEmitter.cpp b/lib/Target/ARM/ARMMCCodeEmitter.cpp index 9684fb1de84..d0812a00d34 100644 --- a/lib/Target/ARM/ARMMCCodeEmitter.cpp +++ b/lib/Target/ARM/ARMMCCodeEmitter.cpp @@ -98,8 +98,8 @@ public: uint32_t getThumbBLXTargetOpValue(const MCInst &MI, unsigned OpIdx, SmallVectorImpl &Fixups) const; - /// getThumbBRTargetOpValue - Return encoding info for Thumb branch target. - uint32_t getThumbBRTargetOpValue(const MCInst &MI, unsigned OpIdx, + /// getThumbCBTargetOpValue - Return encoding info for Thumb branch target. + uint32_t getThumbCBTargetOpValue(const MCInst &MI, unsigned OpIdx, SmallVectorImpl &Fixups) const; /// getBranchTargetOpValue - Return encoding info for 24-bit immediate @@ -458,9 +458,9 @@ getThumbBLXTargetOpValue(const MCInst &MI, unsigned OpIdx, return ::getBranchTargetOpValue(MI, OpIdx, ARM::fixup_arm_thumb_blx, Fixups); } -/// getThumbBRTargetOpValue - Return encoding info for Thumb branch target. +/// getThumbCBTargetOpValue - Return encoding info for Thumb branch target. uint32_t ARMMCCodeEmitter:: -getThumbBRTargetOpValue(const MCInst &MI, unsigned OpIdx, +getThumbCBTargetOpValue(const MCInst &MI, unsigned OpIdx, SmallVectorImpl &Fixups) const { return ::getBranchTargetOpValue(MI, OpIdx, ARM::fixup_arm_thumb_br, Fixups); }