forked from OSchip/llvm-project
llvm-mc/X86: Encode constant MCValue's correctly.
llvm-svn: 80485
This commit is contained in:
parent
6a715dccdf
commit
6e8b1a2530
|
@ -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