diff options
author | Dale Johannesen <dalej@apple.com> | 2009-10-13 20:46:56 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-10-13 20:46:56 +0000 |
commit | 4360298d2bf3c1ba8595a415cfa235df0bc76335 (patch) | |
tree | d8ccc1e4677e43ef3420c6a3a18007298a866a3e /lib/VMCore/AsmWriter.cpp | |
parent | 9578c7aad61935364b28677f19e330b621016148 (diff) | |
download | external_llvm-4360298d2bf3c1ba8595a415cfa235df0bc76335.zip external_llvm-4360298d2bf3c1ba8595a415cfa235df0bc76335.tar.gz external_llvm-4360298d2bf3c1ba8595a415cfa235df0bc76335.tar.bz2 |
Add an "msasm" flag to inline asm as suggested in PR 5125.
A little ugliness is accepted to keep the binary file format
compatible. No functional change yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 3e628ae..b5ae81b 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1206,6 +1206,8 @@ static void WriteAsOperandInternal(raw_ostream &Out, const Value *V, Out << "asm "; if (IA->hasSideEffects()) Out << "sideeffect "; + if (IA->isMsAsm()) + Out << "msasm "; Out << '"'; PrintEscapedString(IA->getAsmString(), Out); Out << "\", \""; |