aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/InlineAsm.h
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-10-13 20:46:56 +0000
committerDale Johannesen <dalej@apple.com>2009-10-13 20:46:56 +0000
commit4360298d2bf3c1ba8595a415cfa235df0bc76335 (patch)
treed8ccc1e4677e43ef3420c6a3a18007298a866a3e /include/llvm/InlineAsm.h
parent9578c7aad61935364b28677f19e330b621016148 (diff)
downloadexternal_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 'include/llvm/InlineAsm.h')
-rw-r--r--include/llvm/InlineAsm.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h
index e0d992b..bc55031 100644
--- a/include/llvm/InlineAsm.h
+++ b/include/llvm/InlineAsm.h
@@ -31,18 +31,22 @@ class InlineAsm : public Value {
std::string AsmString, Constraints;
bool HasSideEffects;
+ bool IsMsAsm;
InlineAsm(const FunctionType *Ty, const StringRef &AsmString,
- const StringRef &Constraints, bool hasSideEffects);
+ const StringRef &Constraints, bool hasSideEffects,
+ bool isMsAsm = false);
virtual ~InlineAsm();
public:
/// InlineAsm::get - Return the the specified uniqued inline asm string.
///
static InlineAsm *get(const FunctionType *Ty, const StringRef &AsmString,
- const StringRef &Constraints, bool hasSideEffects);
+ const StringRef &Constraints, bool hasSideEffects,
+ bool isMsAsm = false);
bool hasSideEffects() const { return HasSideEffects; }
+ bool isMsAsm() const { return IsMsAsm; }
/// getType - InlineAsm's are always pointers.
///