createMCInstPrinter doesn't need TargetMachine anymore.

llvm-svn: 134526
This commit is contained in:
Evan Cheng 2011-07-06 19:45:57 +00:00
parent ab37af9af3
commit 299b36fa72
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
// FIXME: There is a bit of code duplication with addPassesToEmitFile.
if (Opts.OutputType == AssemblerInvocation::FT_Asm) {
MCInstPrinter *IP =
TheTarget->createMCInstPrinter(*TM, Opts.OutputAsmVariant, *MAI);
TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI);
MCCodeEmitter *CE = 0;
TargetAsmBackend *TAB = 0;
if (Opts.ShowEncoding) {