Rename the encoder method for t_cbtarget to match.

llvm-svn: 121399
This commit is contained in:
Jim Grosbach 2010-12-09 19:04:53 +00:00
parent 529c7e8d1f
commit 62b68112da
3 changed files with 6 additions and 6 deletions

View File

@ -175,7 +175,7 @@ namespace {
const { return 0; } const { return 0; }
unsigned getThumbBLXTargetOpValue(const MachineInstr &MI, unsigned Op) unsigned getThumbBLXTargetOpValue(const MachineInstr &MI, unsigned Op)
const { return 0; } const { return 0; }
unsigned getThumbBRTargetOpValue(const MachineInstr &MI, unsigned Op) unsigned getThumbCBTargetOpValue(const MachineInstr &MI, unsigned Op)
const { return 0; } const { return 0; }
unsigned getBranchTargetOpValue(const MachineInstr &MI, unsigned Op) unsigned getBranchTargetOpValue(const MachineInstr &MI, unsigned Op)
const { return 0; } const { return 0; }

View File

@ -75,7 +75,7 @@ def t_imm_s4 : Operand<i32> {
// Define Thumb specific addressing modes. // Define Thumb specific addressing modes.
def t_cbtarget : Operand<i32> { def t_cbtarget : Operand<i32> {
let EncoderMethod = "getThumbBRTargetOpValue"; let EncoderMethod = "getThumbCBTargetOpValue";
} }
def t_bltarget : Operand<i32> { def t_bltarget : Operand<i32> {

View File

@ -98,8 +98,8 @@ public:
uint32_t getThumbBLXTargetOpValue(const MCInst &MI, unsigned OpIdx, uint32_t getThumbBLXTargetOpValue(const MCInst &MI, unsigned OpIdx,
SmallVectorImpl<MCFixup> &Fixups) const; SmallVectorImpl<MCFixup> &Fixups) const;
/// getThumbBRTargetOpValue - Return encoding info for Thumb branch target. /// getThumbCBTargetOpValue - Return encoding info for Thumb branch target.
uint32_t getThumbBRTargetOpValue(const MCInst &MI, unsigned OpIdx, uint32_t getThumbCBTargetOpValue(const MCInst &MI, unsigned OpIdx,
SmallVectorImpl<MCFixup> &Fixups) const; SmallVectorImpl<MCFixup> &Fixups) const;
/// getBranchTargetOpValue - Return encoding info for 24-bit immediate /// 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); 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:: uint32_t ARMMCCodeEmitter::
getThumbBRTargetOpValue(const MCInst &MI, unsigned OpIdx, getThumbCBTargetOpValue(const MCInst &MI, unsigned OpIdx,
SmallVectorImpl<MCFixup> &Fixups) const { SmallVectorImpl<MCFixup> &Fixups) const {
return ::getBranchTargetOpValue(MI, OpIdx, ARM::fixup_arm_thumb_br, Fixups); return ::getBranchTargetOpValue(MI, OpIdx, ARM::fixup_arm_thumb_br, Fixups);
} }