From: Chris Lattner Date: Tue, 13 Apr 2004 17:18:51 +0000 (+0000) Subject: Add support for new instruction type X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e47f4ff9f60e786e34c6d625ad8e682de66680c5;p=oota-llvm.git Add support for new instruction type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12894 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 29607daf447..709455cd2c7 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -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!"); }