mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Follow up of the introduction of MCSymbolizer.
- Ressurect old MCDisassemble API to soften transition. - Extend MCTargetDesc to set target specific symbolizer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -23,9 +23,14 @@ MCDisassembler::setupForSymbolicDisassembly(
|
||||
void *DisInfo,
|
||||
MCContext *Ctx,
|
||||
OwningPtr<MCRelocationInfo> &RelInfo) {
|
||||
this->GetOpInfo = GetOpInfo;
|
||||
this->SymbolLookUp = SymbolLookUp;
|
||||
this->DisInfo = DisInfo;
|
||||
this->Ctx = Ctx;
|
||||
assert(Ctx != 0 && "No MCContext given for symbolic disassembly");
|
||||
Symbolizer.reset(new MCExternalSymbolizer(*Ctx, RelInfo, GetOpInfo,
|
||||
SymbolLookUp, DisInfo));
|
||||
if (!Symbolizer)
|
||||
Symbolizer.reset(new MCExternalSymbolizer(*Ctx, RelInfo, GetOpInfo,
|
||||
SymbolLookUp, DisInfo));
|
||||
}
|
||||
|
||||
bool MCDisassembler::tryAddingSymbolicOperand(MCInst &Inst, int64_t Value,
|
||||
|
Reference in New Issue
Block a user