diff options
author | Shih-wei Liao <sliao@google.com> | 2010-08-09 01:47:20 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-08-09 01:47:20 -0700 |
commit | 7f80b0a9af7a6618516fb29324c83b26189a7372 (patch) | |
tree | b390027962c3c2d2c8391111c77fbf9c882be2c7 /lib/Target/ARM/ARMCodeEmitter.cpp | |
parent | e8ea0a7a9608c3233812362c342751165d573f89 (diff) | |
download | external_llvm-7f80b0a9af7a6618516fb29324c83b26189a7372.tar.gz external_llvm-7f80b0a9af7a6618516fb29324c83b26189a7372.tar.bz2 external_llvm-7f80b0a9af7a6618516fb29324c83b26189a7372.zip |
Handle load effective address (pc relative).
Change-Id: I060d0f6b7983aacacf03c40ee7b0a8a0bcee053c
Diffstat (limited to 'lib/Target/ARM/ARMCodeEmitter.cpp')
-rw-r--r-- | lib/Target/ARM/ARMCodeEmitter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index a99af3c9ca..9bc0706831 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp @@ -150,11 +150,11 @@ namespace { return getMachineOpValue(MI, MI.getOperand(OpIdx)); } - /// getMovi32Value - Return binary encoding of operand for movw/movt. If the + /// getMovi32Value - Return binary encoding of operand for movw/movt. If the /// machine operand requires relocation, record the relocation and return zero. - unsigned getMovi32Value(const MachineInstr &MI,const MachineOperand &MO, + unsigned getMovi32Value(const MachineInstr &MI,const MachineOperand &MO, unsigned Reloc); - unsigned getMovi32Value(const MachineInstr &MI, unsigned OpIdx, + unsigned getMovi32Value(const MachineInstr &MI, unsigned OpIdx, unsigned Reloc) { return getMovi32Value(MI, MI.getOperand(OpIdx), Reloc); } @@ -231,12 +231,12 @@ unsigned ARMCodeEmitter::getShiftOp(unsigned Imm) const { return 0; } -/// getMovi32Value - Return binary encoding of operand for movw/movt. If the +/// getMovi32Value - Return binary encoding of operand for movw/movt. If the /// machine operand requires relocation, record the relocation and return zero. unsigned ARMCodeEmitter::getMovi32Value(const MachineInstr &MI, - const MachineOperand &MO, + const MachineOperand &MO, unsigned Reloc) { - assert(((Reloc == ARM::reloc_arm_movt) || (Reloc == ARM::reloc_arm_movw)) + assert(((Reloc == ARM::reloc_arm_movt) || (Reloc == ARM::reloc_arm_movw)) && "Relocation to this function should be for movt or movw"); switch(MO.getType()) { case MachineOperand::MO_Register: |