aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-27 18:56:36 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-27 18:56:36 +0000
commit728581e7702cafe32cc9e1b5b61a15f5042ce189 (patch)
tree4073793bb380155abba6870229e2e81d1177c59a /lib/AST/Stmt.cpp
parent95a58d2f6ef9149dd50d679a7ee70d0685c38d27 (diff)
[ms-inline asm] Add a new base class, AsmStmt, for the GCCAsmStmt and MSAsmStmt
classes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r--lib/AST/Stmt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index 68e53cc901..8c76a9c1a7 100644
--- a/lib/AST/Stmt.cpp
+++ b/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!");