Add support for new instruction type

llvm-svn: 12894
This commit is contained in:
Chris Lattner 2004-04-13 17:18:51 +00:00
parent 27b2e2cdc0
commit eaa28a29ae
1 changed files with 2 additions and 0 deletions

View File

@ -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!");
}