mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-18 12:25:47 +00:00
Use pointers to the MCAsmInfo and MCRegInfo.
Someone may want to do something crazy, like replace these objects if they change or something. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184175 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -310,7 +310,7 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
|
||||
if (Symbolize) {
|
||||
MOFI.reset(new MCObjectFileInfo);
|
||||
Ctx.reset(new MCContext(*AsmInfo.get(), *MRI.get(), MOFI.get()));
|
||||
Ctx.reset(new MCContext(AsmInfo.get(), MRI.get(), MOFI.get()));
|
||||
OwningPtr<MCRelocationInfo> RelInfo(
|
||||
TheTarget->createMCRelocationInfo(TripleName, *Ctx.get()));
|
||||
if (RelInfo) {
|
||||
|
Reference in New Issue
Block a user