mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Use the correct fixup type for ARM VLDR*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120604 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f44724be0
commit
5177f79c37
@ -658,7 +658,7 @@ getAddrModeS1OpValue(const MCInst &MI, unsigned OpIdx,
|
|||||||
return getAddrModeSOpValue(MI, OpIdx, 1);
|
return getAddrModeSOpValue(MI, OpIdx, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getAddrMode5OpValue - Return encoding info for 'reg +/- imm12' operand.
|
/// getAddrMode5OpValue - Return encoding info for 'reg +/- imm10' operand.
|
||||||
uint32_t ARMMCCodeEmitter::
|
uint32_t ARMMCCodeEmitter::
|
||||||
getAddrMode5OpValue(const MCInst &MI, unsigned OpIdx,
|
getAddrMode5OpValue(const MCInst &MI, unsigned OpIdx,
|
||||||
SmallVectorImpl<MCFixup> &Fixups) const {
|
SmallVectorImpl<MCFixup> &Fixups) const {
|
||||||
@ -676,7 +676,7 @@ getAddrMode5OpValue(const MCInst &MI, unsigned OpIdx,
|
|||||||
|
|
||||||
assert(MO.isExpr() && "Unexpected machine operand type!");
|
assert(MO.isExpr() && "Unexpected machine operand type!");
|
||||||
const MCExpr *Expr = MO.getExpr();
|
const MCExpr *Expr = MO.getExpr();
|
||||||
MCFixupKind Kind = MCFixupKind(ARM::fixup_arm_pcrel_12);
|
MCFixupKind Kind = MCFixupKind(ARM::fixup_arm_pcrel_10);
|
||||||
Fixups.push_back(MCFixup::Create(0, Expr, Kind));
|
Fixups.push_back(MCFixup::Create(0, Expr, Kind));
|
||||||
|
|
||||||
++MCNumCPRelocations;
|
++MCNumCPRelocations;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user