Enable streaming of bitcode
[oota-llvm.git] / lib / Target / X86 / Disassembler / X86DisassemblerDecoder.c
index 2ab2f74af94eba8a98399b9dfbd4d7acf4602e03..958f653eb736bc61313cb2c3d4e8320a59011752 100644 (file)
@@ -103,12 +103,9 @@ static InstrUID decode(OpcodeType type,
                        InstructionContext insnContext,
                        uint8_t opcode,
                        uint8_t modRM) {
-  const struct ModRMDecision* dec;
+  const struct ModRMDecision* dec = 0;
   
   switch (type) {
-  default:
-    debug("Unknown opcode type");
-    return 0;
   case ONEBYTE:
     dec = &ONEBYTE_SYM.opcodeDecisions[insnContext].modRMDecisions[opcode];
     break;
@@ -1502,8 +1499,8 @@ static int readOperands(struct InternalInstruction* insn) {
       return -1;
     case ENCODING_IB:
       if (sawRegImm) {
-        // Saw a register immediate so don't read again and instead split the
-        // previous immediate.  FIXME: This is a hack
+        /* Saw a register immediate so don't read again and instead split the
+           previous immediate.  FIXME: This is a hack. */
         insn->immediates[insn->numImmediatesConsumed] =
           insn->immediates[insn->numImmediatesConsumed - 1] & 0xf;
         ++insn->numImmediatesConsumed;