mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
createMCInstPrinter doesn't need TargetMachine anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -127,7 +127,7 @@ static bool ByteArrayFromString(ByteArrayTy &ByteArray,
|
||||
return false;
|
||||
}
|
||||
|
||||
int Disassembler::disassemble(const Target &T, TargetMachine &TM,
|
||||
int Disassembler::disassemble(const Target &T,
|
||||
const std::string &Triple,
|
||||
MemoryBuffer &Buffer,
|
||||
raw_ostream &Out) {
|
||||
@ -146,7 +146,7 @@ int Disassembler::disassemble(const Target &T, TargetMachine &TM,
|
||||
}
|
||||
|
||||
int AsmPrinterVariant = AsmInfo->getAssemblerDialect();
|
||||
OwningPtr<MCInstPrinter> IP(T.createMCInstPrinter(TM, AsmPrinterVariant,
|
||||
OwningPtr<MCInstPrinter> IP(T.createMCInstPrinter(AsmPrinterVariant,
|
||||
*AsmInfo));
|
||||
if (!IP) {
|
||||
errs() << "error: no instruction printer for target " << Triple << '\n';
|
||||
|
Reference in New Issue
Block a user