Add support for new instruction type
authorChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 17:18:51 +0000 (17:18 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 17:18:51 +0000 (17:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12894 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CodeEmitter.cpp

index 29607daf4476ce70c1c7e028afebb6d8a994a12a..709455cd2c7b52ce5b88d845caa3117ad1e65320 100644 (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!");
       }