mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18: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:
@ -343,7 +343,7 @@ static int AssembleInput(const char *ProgName) {
|
||||
// FIXME: There is a bit of code duplication with addPassesToEmitFile.
|
||||
if (FileType == OFT_AssemblyFile) {
|
||||
MCInstPrinter *IP =
|
||||
TheTarget->createMCInstPrinter(*TM, OutputAsmVariant, *MAI);
|
||||
TheTarget->createMCInstPrinter(OutputAsmVariant, *MAI);
|
||||
MCCodeEmitter *CE = 0;
|
||||
TargetAsmBackend *TAB = 0;
|
||||
if (ShowEncoding) {
|
||||
@ -426,7 +426,7 @@ static int DisassembleInput(const char *ProgName, bool Enhanced) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Res = Disassembler::disassemble(*TheTarget, *TM, TripleName,
|
||||
Res = Disassembler::disassemble(*TheTarget, TripleName,
|
||||
*Buffer.take(), Out->os());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user