Ignore debugging related instructions if they get this far.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 5 Mar 2008 02:34:36 +0000 (02:34 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 5 Mar 2008 02:34:36 +0000 (02:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47934 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CodeEmitter.cpp

index 8fdf6a501f78d0b6a27b54a9ecb9fffa5bfe1626..19b52e8dafc2f418a1c3faa771e4a236840fbb4e 100644 (file)
@@ -610,11 +610,15 @@ void Emitter::emitInstruction(const MachineInstr &MI,
     switch (Opcode) {
     default: 
       assert(0 && "psuedo instructions should be removed before code emission");
+      break;
     case TargetInstrInfo::INLINEASM:
       assert(0 && "JIT does not support inline asm!\n");
+      break;
     case TargetInstrInfo::LABEL:
       MCE.emitLabel(MI.getOperand(0).getImm());
       break;
+    case TargetInstrInfo::DECLARE:
+    case X86::DWARF_LOC:
     case X86::IMPLICIT_DEF_GR8:
     case X86::IMPLICIT_DEF_GR16:
     case X86::IMPLICIT_DEF_GR32: