mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +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:
@@ -85,7 +85,6 @@ namespace llvm {
|
||||
TargetMachine &TM);
|
||||
typedef MCDisassembler *(*MCDisassemblerCtorTy)(const Target &T);
|
||||
typedef MCInstPrinter *(*MCInstPrinterCtorTy)(const Target &T,
|
||||
TargetMachine &TM,
|
||||
unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI);
|
||||
typedef MCCodeEmitter *(*CodeEmitterCtorTy)(const Target &T,
|
||||
@@ -334,12 +333,11 @@ namespace llvm {
|
||||
return MCDisassemblerCtorFn(*this);
|
||||
}
|
||||
|
||||
MCInstPrinter *createMCInstPrinter(TargetMachine &TM,
|
||||
unsigned SyntaxVariant,
|
||||
MCInstPrinter *createMCInstPrinter(unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI) const {
|
||||
if (!MCInstPrinterCtorFn)
|
||||
return 0;
|
||||
return MCInstPrinterCtorFn(*this, TM, SyntaxVariant, MAI);
|
||||
return MCInstPrinterCtorFn(*this, SyntaxVariant, MAI);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user