#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
-#include <string>
-
using namespace llvm;
using namespace X86Disassembler;
INSTRUCTION_CONTEXTS
#undef ENUM_ENTRY
}
+
+ return 0;
}
/// stringForOperandType - Like stringForContext, but for OperandTypes.
/// @param i - The indentation level for that output stream.
static void emitEmptyTable(raw_ostream &o, uint32_t &i)
{
- o.indent(i * 2) << "InstrUID modRMEmptyTable[1] = { 0 };" << "\n";
+ o.indent(i * 2) << "static InstrUID modRMEmptyTable[1] = { 0 };" << "\n";
o << "\n";
}
for (i = 0; i < 4; i++) {
Tables[i] = new ContextDecision;
- bzero(Tables[i], sizeof(ContextDecision));
+ memset(Tables[i], 0, sizeof(ContextDecision));
}
HasConflicts = false;
return;
}
- o1.indent(i1) << "InstrUID modRMTable" << thisTableNumber;
+ o1.indent(i1) << "static InstrUID modRMTable" << thisTableNumber;
switch (dt) {
default: