diff options
Diffstat (limited to 'include/clang/AST/Stmt.h')
-rw-r--r-- | include/clang/AST/Stmt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index f119637af9..8d4bd1f583 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -1628,16 +1628,18 @@ class MSAsmStmt : public Stmt { unsigned NumAsmToks; unsigned NumLineEnds; + unsigned NumClobbers; Token *AsmToks; unsigned *LineEnds; Stmt **Exprs; + std::string *Clobbers; public: MSAsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, bool isvolatile, ArrayRef<Token> asmtoks, ArrayRef<unsigned> lineends, StringRef asmstr, - SourceLocation endloc); + ArrayRef<std::string> clobbers, SourceLocation endloc); SourceLocation getAsmLoc() const { return AsmLoc; } void setAsmLoc(SourceLocation L) { AsmLoc = L; } @@ -1662,6 +1664,9 @@ public: //===--- Other ---===// + unsigned getNumClobbers() const { return NumClobbers; } + StringRef getClobber(unsigned i) { return Clobbers[i]; } + SourceRange getSourceRange() const LLVM_READONLY { return SourceRange(AsmLoc, EndLoc); } |