зеркало из https://github.com/microsoft/clang.git
Pass in the TargetMachine parameter to the inst printer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
38448d3ae8
Коммит
ad3dfbe463
|
@ -275,7 +275,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(*TM, Opts.OutputAsmVariant, *MAI);
|
||||
MCCodeEmitter *CE = 0;
|
||||
TargetAsmBackend *TAB = 0;
|
||||
if (Opts.ShowEncoding) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче