[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
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index 68e53cc..8c76a9c 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -596,8 +596,8 @@
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 @@
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!");