aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-24 23:51:02 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-24 23:51:02 +0000
commitcd518a0ebc7c0a6aa41d717c360462540ef80a76 (patch)
tree4155d583a4939e7959ef7630fd77293c530b3e5d /include/clang
parent129a60b35a8a06a3b245f87bee56458979b32ba2 (diff)
[ms-inline asm] Update the AST Reader/Writer for MS-style inline asms.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/AST/Stmt.h5
-rw-r--r--include/clang/Serialization/ASTBitCodes.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h
index 97598db6d2..4b7cd1cc81 100644
--- a/include/clang/AST/Stmt.h
+++ b/include/clang/AST/Stmt.h
@@ -1637,6 +1637,11 @@ public:
StringRef asmstr, ArrayRef<StringRef> clobbers,
SourceLocation endloc);
+ /// \brief Build an empty MS-style inline-assembly statement.
+ explicit MSAsmStmt(EmptyShell Empty) : Stmt(MSAsmStmtClass, Empty),
+ NumAsmToks(0), NumInputs(0), NumOutputs(0), NumClobbers(0), AsmToks(0),
+ Names(0), Exprs(0), Clobbers(0) { }
+
SourceLocation getAsmLoc() const { return AsmLoc; }
void setAsmLoc(SourceLocation L) { AsmLoc = L; }
SourceLocation getLBraceLoc() const { return LBraceLoc; }
diff --git a/include/clang/Serialization/ASTBitCodes.h b/include/clang/Serialization/ASTBitCodes.h
index dbe6e5a314..2f6c1de0d6 100644
--- a/include/clang/Serialization/ASTBitCodes.h
+++ b/include/clang/Serialization/ASTBitCodes.h
@@ -1001,6 +1001,8 @@ namespace clang {
STMT_DECL,
/// \brief An AsmStmt record.
STMT_ASM,
+ /// \brief A MS-style AsmStmt record.
+ STMT_MSASM,
/// \brief A PredefinedExpr record.
EXPR_PREDEFINED,
/// \brief A DeclRefExpr record.