remove dead .erase.
[oota-llvm.git] / utils / TableGen / X86DisassemblerTables.cpp
index 83284a77ba2739864c0b6313d22fcfcbba633783..be070317fc605c3f0d4a61b0a9bbf32ca3f39e2d 100644 (file)
@@ -21,8 +21,6 @@
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/Format.h"
 
-#include <string>
-
 using namespace llvm;
 using namespace X86Disassembler;
   
@@ -107,6 +105,8 @@ static inline const char* stringForContext(InstructionContext insnContext) {
   INSTRUCTION_CONTEXTS
 #undef ENUM_ENTRY
   }
+
+  return 0;
 }
 
 /// stringForOperandType - Like stringForContext, but for OperandTypes.
@@ -238,7 +238,7 @@ DisassemblerTables::DisassemblerTables() {
   
   for (i = 0; i < 4; i++) {
     Tables[i] = new ContextDecision;
-    bzero(Tables[i], sizeof(ContextDecision));
+    memset(Tables[i], 0, sizeof(ContextDecision));
   }
   
   HasConflicts = false;