mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
llvm-mc/X86: Encode constant MCValue's correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7092c7e1dc
commit
df65eafe5e
@ -971,6 +971,12 @@ public:
|
||||
if (!Op.isMCValue())
|
||||
return false;
|
||||
|
||||
const MCValue &Val = Op.getMCValue();
|
||||
if (Val.isAbsolute()) {
|
||||
Instr->addOperand(MachineOperand::CreateImm(Val.getConstant()));
|
||||
return true;
|
||||
}
|
||||
|
||||
// FIXME: Relocation / fixup.
|
||||
Instr->addOperand(MachineOperand::CreateImm(0));
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user