diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-10 19:13:14 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-10 19:13:14 +0000 |
commit | 4399ea9d473365224d9e4db0cd94aab849eb59b7 (patch) | |
tree | abb9c64ea22cdb4e7157efd71907dc39e4b9b072 /lib/Sema/SemaStmt.cpp | |
parent | 6bd3291605a3034b858c8aeecc6990fa4f979f6c (diff) |
[ms-inline asm] Add clobbers to AST representation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 56ac7c5d46..716f4df526 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -2883,6 +2883,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation EndLoc) { // MS-style inline assembly is not fully supported, so emit a warning. Diag(AsmLoc, diag::warn_unsupported_msasm); + SmallVector<std::string,4> Clobbers; // Empty asm statements don't need to instantiate the AsmParser, etc. if (AsmToks.empty()) { @@ -2890,7 +2891,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, MSAsmStmt *NS = new (Context) MSAsmStmt(Context, AsmLoc, /* IsSimple */ true, /* IsVolatile */ true, AsmToks, LineEnds, - AsmString, EndLoc); + AsmString, Clobbers, EndLoc); return Owned(NS); } @@ -2937,7 +2938,7 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, MSAsmStmt *NS = new (Context) MSAsmStmt(Context, AsmLoc, IsSimple, /* IsVolatile */ true, - AsmToks, LineEnds, AsmString, EndLoc); + AsmToks, LineEnds, AsmString, Clobbers, EndLoc); return Owned(NS); } |