diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-08-27 18:56:36 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-08-27 18:56:36 +0000 |
commit | aeff2299c3299622b21c9803a5a1dbf82dc2ad3c (patch) | |
tree | deb54383c3e7dffed1380743ec6ddd590aff7430 /clang/lib/AST/Stmt.cpp | |
parent | de06338a08f98ddf796ce81a8103be889717d295 (diff) | |
download | bcm5719-llvm-aeff2299c3299622b21c9803a5a1dbf82dc2ad3c.tar.gz bcm5719-llvm-aeff2299c3299622b21c9803a5a1dbf82dc2ad3c.zip |
[ms-inline asm] Add a new base class, AsmStmt, for the GCCAsmStmt and MSAsmStmt
classes.
llvm-svn: 162691
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
-rw-r--r-- | clang/lib/AST/Stmt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index 68e53cc9013..8c76a9c1a7d 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -596,8 +596,8 @@ GCCAsmStmt::GCCAsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple, Expr **exprs, StringLiteral *asmstr, unsigned numclobbers, StringLiteral **clobbers, SourceLocation rparenloc) - : Stmt(GCCAsmStmtClass), AsmLoc(asmloc), RParenLoc(rparenloc), AsmStr(asmstr) - , IsSimple(issimple), IsVolatile(isvolatile), NumOutputs(numoutputs) + : AsmStmt(GCCAsmStmtClass, issimple, isvolatile), AsmLoc(asmloc) + , RParenLoc(rparenloc), AsmStr(asmstr), NumOutputs(numoutputs) , NumInputs(numinputs), NumClobbers(numclobbers) { unsigned NumExprs = NumOutputs + NumInputs; @@ -622,8 +622,8 @@ MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc, ArrayRef<Expr*> inputexprs, ArrayRef<Expr*> outputexprs, StringRef asmstr, ArrayRef<StringRef> clobbers, SourceLocation endloc) - : Stmt(MSAsmStmtClass), AsmLoc(asmloc), LBraceLoc(lbraceloc), EndLoc(endloc), - AsmStr(asmstr.str()), IsSimple(issimple), IsVolatile(isvolatile), + : AsmStmt(MSAsmStmtClass, issimple, isvolatile), AsmLoc(asmloc), + LBraceLoc(lbraceloc), EndLoc(endloc), AsmStr(asmstr.str()), NumAsmToks(asmtoks.size()), NumInputs(inputs.size()), NumOutputs(outputs.size()), NumClobbers(clobbers.size()) { assert (inputs.size() == inputexprs.size() && "Input expr size mismatch!"); |