mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Add support for new instruction type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
266538350a
commit
e47f4ff9f6
@ -537,6 +537,8 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
|||||||
unsigned Address = MCE.getGlobalValueAddress(MO.getSymbolName());
|
unsigned Address = MCE.getGlobalValueAddress(MO.getSymbolName());
|
||||||
assert(Address && "Unknown external symbol!");
|
assert(Address && "Unknown external symbol!");
|
||||||
emitMaybePCRelativeValue(Address, MO.isPCRelative());
|
emitMaybePCRelativeValue(Address, MO.isPCRelative());
|
||||||
|
} else if (MO.isImmediate()) {
|
||||||
|
emitConstant(MO.getImmedValue(), sizeOfImm(Desc));
|
||||||
} else {
|
} else {
|
||||||
assert(0 && "Unknown RawFrm operand!");
|
assert(0 && "Unknown RawFrm operand!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user