diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-09-10 21:10:49 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-09-10 21:10:49 +0000 |
commit | 3b132fab0bebe7186348d7ab0e2663c9fddab3bb (patch) | |
tree | c44bbb6f75d830c2c824e17e194d4a645d4233b9 /lib/CodeGen/AsmPrinter | |
parent | 3c4ecd7dab5567017ad573769b0af484479bac6f (diff) | |
download | external_llvm-3b132fab0bebe7186348d7ab0e2663c9fddab3bb.zip external_llvm-3b132fab0bebe7186348d7ab0e2663c9fddab3bb.tar.gz external_llvm-3b132fab0bebe7186348d7ab0e2663c9fddab3bb.tar.bz2 |
[ms-inline asm] Pass the correct AsmVariant to the PrintAsmOperand() function
and update the printOperand() function accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp index b0818fe..2dfb73e 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp @@ -199,7 +199,8 @@ void AsmPrinter::EmitInlineAsm(const MachineInstr *MI) const { // The variant of the current asmprinter. int AsmPrinterVariant = MAI->getAssemblerDialect(); - + int InlineAsmVariant = MI->getInlineAsmDialect(); + int CurVariant = -1; // The number of the {.|.|.} region we are in. const char *LastEmitted = AsmStr; // One past the last character emitted. @@ -344,11 +345,11 @@ void AsmPrinter::EmitInlineAsm(const MachineInstr *MI) const { else { AsmPrinter *AP = const_cast<AsmPrinter*>(this); if (InlineAsm::isMemKind(OpFlags)) { - Error = AP->PrintAsmMemoryOperand(MI, OpNo, AsmPrinterVariant, + Error = AP->PrintAsmMemoryOperand(MI, OpNo, InlineAsmVariant, Modifier[0] ? Modifier : 0, OS); } else { - Error = AP->PrintAsmOperand(MI, OpNo, AsmPrinterVariant, + Error = AP->PrintAsmOperand(MI, OpNo, InlineAsmVariant, Modifier[0] ? Modifier : 0, OS); } } |