diff options
| author | Bill Wendling <isanbard@gmail.com> | 2007-01-16 03:42:04 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2007-01-16 03:42:04 +0000 |
| commit | e21237e59a8e172e4b038c4998411538853d6bc5 (patch) | |
| tree | fa586421039cdf5148e9fac1d09ef7d5cdfa8363 /llvm/lib/CodeGen | |
| parent | 4268fc08d383522016587b05f2809e422da58472 (diff) | |
| download | bcm5719-llvm-e21237e59a8e172e4b038c4998411538853d6bc5.tar.gz bcm5719-llvm-e21237e59a8e172e4b038c4998411538853d6bc5.zip | |
Fix for PR1095:
LLVM would miscompile ASM dialects when compiling for PPC. Added dialects for
the X86 and PPC backends. It defaults to "0", the first variant of a compound
inline asm expression.
llvm-svn: 33246
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 606c4b8ba52..caa9da0d2ff 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -698,9 +698,9 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const { O << TAI->getInlineAsmStart() << "\n\t"; - // The variant of the current asmprinter: FIXME: change. - int AsmPrinterVariant = 0; - + // The variant of the current asmprinter. + int AsmPrinterVariant = TAI->getAssemblerDialect(); + int CurVariant = -1; // The number of the {.|.|.} region we are in. const char *LastEmitted = AsmStr; // One past the last character emitted. |

