diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-27 23:47:56 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-27 23:47:56 +0000 |
commit | 33f0558f75f70061707d1388e305b8f92f4e55de (patch) | |
tree | c0b1ef120ec2f8cb8e6f625f12c1d7f48e523636 /include/clang/AST/Stmt.h | |
parent | 2fd559f041d49863a7396d9e330bc9dae95ac8c4 (diff) | |
download | clang-33f0558f75f70061707d1388e305b8f92f4e55de.tar.gz |
[ms-inline asm] Add virtual function, getClobber, that returns a StringRef.
More work towards unifying asm stmt codegen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/Stmt.h')
-rw-r--r-- | include/clang/AST/Stmt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 81eac33655..3c060bab99 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -1444,6 +1444,7 @@ public: //===--- Other ---===// unsigned getNumClobbers() const { return NumClobbers; } + virtual StringRef getClobber(unsigned i) const = 0; static bool classof(const Stmt *T) { return T->getStmtClass() == GCCAsmStmtClass || @@ -1645,6 +1646,7 @@ public: /// This returns -1 if the operand name is invalid. int getNamedOperand(StringRef SymbolicName) const; + StringRef getClobber(unsigned i) const; StringLiteral *getClobberStringLiteral(unsigned i) { return Clobbers[i]; } const StringLiteral *getClobberStringLiteral(unsigned i) const { return Clobbers[i]; |