Exemplo n.º 1
0
CorDisasm *InitDisasm(TargetArch Target) {
  CorDisasm *Disassembler = new CorDisasm(Target);
  if (Disassembler->init()) {
    return Disassembler;
  }

  delete Disassembler;
  return nullptr;
}
Exemplo n.º 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;
}