forked from OSchip/llvm-project
Pass in the TargetMachine parameter to the inst printer.
llvm-svn: 127987
This commit is contained in:
parent
00f0cddfd4
commit
a8da50d011
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue