mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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:
@@ -537,6 +537,8 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
||||
unsigned Address = MCE.getGlobalValueAddress(MO.getSymbolName());
|
||||
assert(Address && "Unknown external symbol!");
|
||||
emitMaybePCRelativeValue(Address, MO.isPCRelative());
|
||||
} else if (MO.isImmediate()) {
|
||||
emitConstant(MO.getImmedValue(), sizeOfImm(Desc));
|
||||
} else {
|
||||
assert(0 && "Unknown RawFrm operand!");
|
||||
}
|
||||
|
Reference in New Issue
Block a user