mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
[C++11] Add overloads for externally used OwningPtr functions.
This will allow external callers of these functions to switch over time rather than forcing a breaking change all a once. These particular functions were determined by building clang/lld/lldb. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -33,6 +33,18 @@ MCDisassembler::setupForSymbolicDisassembly(
|
||||
SymbolLookUp, DisInfo));
|
||||
}
|
||||
|
||||
void
|
||||
MCDisassembler::setupForSymbolicDisassembly(
|
||||
LLVMOpInfoCallback GetOpInfo,
|
||||
LLVMSymbolLookupCallback SymbolLookUp,
|
||||
void *DisInfo,
|
||||
MCContext *Ctx,
|
||||
std::unique_ptr<MCRelocationInfo> &RelInfo) {
|
||||
OwningPtr<MCRelocationInfo> MCRI;
|
||||
setupForSymbolicDisassembly(GetOpInfo, SymbolLookUp, DisInfo, Ctx, MCRI);
|
||||
RelInfo = MCRI.take_unique();
|
||||
}
|
||||
|
||||
bool MCDisassembler::tryAddingSymbolicOperand(MCInst &Inst, int64_t Value,
|
||||
uint64_t Address, bool IsBranch,
|
||||
uint64_t Offset,
|
||||
|
Reference in New Issue
Block a user