Pass in the TargetMachine parameter to the inst printer.

llvm-svn: 127987
This commit is contained in:
Bill Wendling 2011-03-21 05:02:03 +00:00
parent 00f0cddfd4
commit a8da50d011
1 changed files with 1 additions and 1 deletions

View File

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