mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
We need to pass the TargetMachine object to the InstPrinter if we are printing
the alias of an InstAlias instead of the thing being aliased. Because we need to know the features that are valid for an InstAlias. This is part of a work-in-progress. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -78,6 +78,7 @@ 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,
|
||||
@@ -286,11 +287,12 @@ namespace llvm {
|
||||
return MCDisassemblerCtorFn(*this);
|
||||
}
|
||||
|
||||
MCInstPrinter *createMCInstPrinter(unsigned SyntaxVariant,
|
||||
MCInstPrinter *createMCInstPrinter(TargetMachine &TM,
|
||||
unsigned SyntaxVariant,
|
||||
const MCAsmInfo &MAI) const {
|
||||
if (!MCInstPrinterCtorFn)
|
||||
return 0;
|
||||
return MCInstPrinterCtorFn(*this, SyntaxVariant, MAI);
|
||||
return MCInstPrinterCtorFn(*this, TM, SyntaxVariant, MAI);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user