Fix up MCInstPrinter creation to take the new SubtargetInfo parameter (see LLVM r139237)

llvm-svn: 139238
This commit is contained in:
James Molloy 2011-09-07 17:25:30 +00:00
parent 4c493e8050
commit 98f3e18f25
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(Opts.OutputAsmVariant, *MAI);
TheTarget->createMCInstPrinter(Opts.OutputAsmVariant, *MAI, *STI);
MCCodeEmitter *CE = 0;
MCAsmBackend *MAB = 0;
if (Opts.ShowEncoding) {