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 | c6c7133ed69d077cb9fcb1aa9e3b442824852187 (patch) | |
tree | 6a728358dbf814776efea8faa2b9582df7316c10 /clang/lib/AST/Stmt.cpp | |
parent | a1f8c0ab93ef8bbf54f3643ccfa569488d8864fc (diff) | |
download | bcm5719-llvm-c6c7133ed69d077cb9fcb1aa9e3b442824852187.tar.gz bcm5719-llvm-c6c7133ed69d077cb9fcb1aa9e3b442824852187.zip |
[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.
llvm-svn: 161342
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index ff6374c2d8e..763f8bd33a3 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/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, |