mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-07 23:46:07 +00:00
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;
|
Stmt **Exprs;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MSAsmStmt(ASTContext &C, SourceLocation asmloc,
|
MSAsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple,
|
||||||
ArrayRef<Token> asmtoks, std::string &asmstr,
|
bool isvolatile, ArrayRef<Token> asmtoks, std::string &asmstr,
|
||||||
SourceLocation endloc);
|
SourceLocation endloc);
|
||||||
|
|
||||||
SourceLocation getAsmLoc() const { return AsmLoc; }
|
SourceLocation getAsmLoc() const { return AsmLoc; }
|
||||||
|
@ -584,10 +584,11 @@ AsmStmt::AsmStmt(ASTContext &C, SourceLocation asmloc, bool issimple,
|
|||||||
}
|
}
|
||||||
|
|
||||||
MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc,
|
MSAsmStmt::MSAsmStmt(ASTContext &C, SourceLocation asmloc,
|
||||||
ArrayRef<Token> asmtoks,
|
bool issimple, bool isvolatile, ArrayRef<Token> asmtoks,
|
||||||
std::string &asmstr, SourceLocation endloc)
|
std::string &asmstr, SourceLocation endloc)
|
||||||
: Stmt(MSAsmStmtClass), AsmLoc(asmloc), EndLoc(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];
|
AsmToks = new (C) Token[NumAsmToks];
|
||||||
for (unsigned i = 0, e = NumAsmToks; i != e; ++i)
|
for (unsigned i = 0, e = NumAsmToks; i != e; ++i)
|
||||||
|
@ -2755,7 +2755,8 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc,
|
|||||||
Diag(AsmLoc, diag::warn_unsupported_msasm);
|
Diag(AsmLoc, diag::warn_unsupported_msasm);
|
||||||
|
|
||||||
MSAsmStmt *NS =
|
MSAsmStmt *NS =
|
||||||
new (Context) MSAsmStmt(Context, AsmLoc, AsmToks, AsmString, EndLoc);
|
new (Context) MSAsmStmt(Context, AsmLoc, true, true, AsmToks, AsmString,
|
||||||
|
EndLoc);
|
||||||
|
|
||||||
return Owned(NS);
|
return Owned(NS);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user