mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +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:
@ -144,3 +144,17 @@ void MCExternalSymbolizer::tryAddingPcLoadReferenceComment(raw_ostream &cStream,
|
||||
cStream << "literal pool for: " << ReferenceName;
|
||||
}
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
MCSymbolizer *createMCSymbolizer(StringRef TT, LLVMOpInfoCallback GetOpInfo,
|
||||
LLVMSymbolLookupCallback SymbolLookUp,
|
||||
void *DisInfo,
|
||||
MCContext *Ctx,
|
||||
MCRelocationInfo *RelInfo) {
|
||||
assert(Ctx != 0 && "No MCContext given for symbolic disassembly");
|
||||
|
||||
OwningPtr<MCRelocationInfo> RelInfoOwingPtr(RelInfo);
|
||||
return new MCExternalSymbolizer(*Ctx, RelInfoOwingPtr, GetOpInfo,
|
||||
SymbolLookUp, DisInfo);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user