Add the IsSimple/IsVolatile parameters to the MSAsmStmt constructor.

llvm-svn: 161503
This commit is contained in:
Chad Rosier 2012-08-08 17:35:36 +00:00
parent bf154daee6
commit d2ff32aa94
3 changed files with 7 additions and 5 deletions

View File

@ -1632,8 +1632,8 @@ class MSAsmStmt : public Stmt {
Stmt **Exprs;
public:
MSAsmStmt(ASTContext &C, SourceLocation asmloc,
ArrayRef<Token> asmtoks, std::string &asmstr,
MSAsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple,
bool isvolatile, ArrayRef<Token> asmtoks, std::string &asmstr,
SourceLocation endloc);
SourceLocation getAsmLoc() const { return AsmLoc; }

View File

@ -584,10 +584,11 @@ AsmStmt::AsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple,
}
MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc,
ArrayRef<Token> asmtoks,
bool issimple, bool isvolatile, ArrayRef<Token> asmtoks,
std::string &asmstr, SourceLocation endloc)
: Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(endloc),
AsmStr(asmstr), IsSimple(true), IsVolatile(true), NumAsmToks(asmtoks.size()) {
AsmStr(asmstr), IsSimple(issimple), IsVolatile(isvolatile),
NumAsmToks(asmtoks.size()) {
AsmToks = new (C) Token[NumAsmToks];
for (unsigned i = 0, e = NumAsmToks; i != e; ++i)

View File

@ -2755,7 +2755,8 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
Diag(AsmLoc, diag::warn_unsupported_msasm);
MSAsmStmt *NS =
new (Context) MSAsmStmt(Context, AsmLoc, AsmToks, AsmString, EndLoc);
new (Context) MSAsmStmt(Context, AsmLoc, true, true, AsmToks, AsmString,
EndLoc);
return Owned(NS);
}