mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 11:08:32 +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());
|
||||
assert(Address && "Unknown external symbol!");
|
||||
emitMaybePCRelativeValue(Address, MO.isPCRelative());
|
||||
} else if (MO.isImmediate()) {
|
||||
emitConstant(MO.getImmedValue(), sizeOfImm(Desc));
|
||||
} else {
|
||||
assert(0 && "Unknown RawFrm operand!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user