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 2ac503aa61..45e0892ce3 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -20,6 +20,7 @@ #include "clang/AST/StmtIterator.h" #include "clang/AST/DeclGroup.h" #include "clang/AST/Attr.h" +#include "clang/Lex/Token.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/raw_ostream.h" @@ -1620,6 +1621,7 @@ public: /// class MSAsmStmt : public Stmt { SourceLocation AsmLoc, EndLoc; + SmallVector<Token, 4> AsmToks; std::string AsmStr; bool IsSimple; @@ -1628,7 +1630,8 @@ class MSAsmStmt : public Stmt { Stmt **Exprs; public: - MSAsmStmt(ASTContext &C, SourceLocation asmloc, std::string &asmstr, + MSAsmStmt(ASTContext &C, SourceLocation asmloc, + SmallVectorImpl<Token> &asmtoks, std::string &asmstr, SourceLocation endloc); SourceLocation getAsmLoc() const { return AsmLoc; } @@ -1636,6 +1639,8 @@ public: SourceLocation getEndLoc() const { return EndLoc; } void setEndLoc(SourceLocation L) { EndLoc = L; } + SmallVectorImpl<Token> &getAsmToks() { return AsmToks; } + bool isVolatile() const { return IsVolatile; } void setVolatile(bool V) { IsVolatile = V; } bool isSimple() const { return IsSimple; } |