diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-06 20:03:45 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-06 20:03:45 +0000 |
commit | 8f726de55412870ef70e788b852c6cc50873e15b (patch) | |
tree | 329890730d3048e4c6de8eb79ae2de053c83fe46 /lib/AST/Stmt.cpp | |
parent | cc83f26c48dfdc99ea5fbc3c28c9c9653bd71e8c (diff) |
[ms-inline asm] Pass Tokens to Sema and store them in the AST. No functional
change intended. No test case as there's no real way to test at this time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index ff6374c2d8..763f8bd33a 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -583,10 +583,14 @@ AsmStmt::AsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, std::copy(clobbers, clobbers + NumClobbers, Clobbers); } -MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc, std::string &asmstr, - SourceLocation endloc) - : Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(endloc), AsmStr(asmstr), +MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc, + SmallVectorImpl<Token> &asmtoks, + std::string &asmstr, SourceLocation endloc) + : Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(endloc), + AsmToks(asmtoks.size()), AsmStr(asmstr), IsSimple(true), IsVolatile(true) { + for (unsigned i = 0, e = asmtoks.size(); i != e; ++i) + AsmToks.push_back(asmtoks[i]); } ObjCForCollectionStmt::ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, |