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 | a7020aee0004dd9a746e1f9404b10a7bcfdb35b5 (patch) | |
tree | 01ec696af56e5483456acdfacfe21146b8df9366 /clang/lib/Sema/SemaStmt.cpp | |
parent | 8d48c8c6753ac4f9239bd1b75d0dcbfde68c0079 (diff) | |
download | bcm5719-llvm-a7020aee0004dd9a746e1f9404b10a7bcfdb35b5.tar.gz bcm5719-llvm-a7020aee0004dd9a746e1f9404b10a7bcfdb35b5.zip |
[ms-inline asm] Add clobbers to AST representation.
llvm-svn: 161686
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 56ac7c5d46d..716f4df5267 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/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); } |