forked from OSchip/llvm-project
Add the IsSimple/IsVolatile parameters to the MSAsmStmt constructor.
llvm-svn: 161503
This commit is contained in:
parent
bf154daee6
commit
d2ff32aa94
|
@ -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; }
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue