示例#1
0
CorDisasm *InitDisasm(TargetArch Target) {
  CorDisasm *Disassembler = new CorDisasm(Target);
  if (Disassembler->init()) {
    return Disassembler;
  }

  delete Disassembler;
  return nullptr;
}
示例#2
0
DllIface CorDisasm *NewDisasm(enum TargetArch Target,
                              const PrintControl *PControl) {
  CorDisasm *Disassembler = new CorDisasm(Target, PControl);
  if (Disassembler->init()) {
    return Disassembler;
  }

  delete Disassembler;
  return nullptr;
}