summaryrefslogtreecommitdiff
path: root/AST/Stmt.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2007-11-23 23:12:25 +0000
committerAnders Carlsson <andersca@mac.com>2007-11-23 23:12:25 +0000
commit39c47b56f45437bbc49c9568b7308a400234a730 (patch)
treed310231b2305c5ddddfd0a3e4e80ae1e1e9b2e9d /AST/Stmt.cpp
parent75cf28834e85e561b093af41a56fbddfec549a8b (diff)
downloadclang-39c47b56f45437bbc49c9568b7308a400234a730.tar.gz
Keep track of whether the asm is volatile or not.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'AST/Stmt.cpp')
-rw-r--r--AST/Stmt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/AST/Stmt.cpp b/AST/Stmt.cpp
index 9a4d4347b6..6663d6f88b 100644
--- a/AST/Stmt.cpp
+++ b/AST/Stmt.cpp
@@ -112,6 +112,7 @@ bool Stmt::hasImplicitControlFlow() const {
}
AsmStmt::AsmStmt(SourceLocation asmloc,
+ bool isvolatile,
unsigned numoutputs,
unsigned numinputs,
std::string *names,
@@ -122,7 +123,7 @@ AsmStmt::AsmStmt(SourceLocation asmloc,
StringLiteral **clobbers,
SourceLocation rparenloc)
: Stmt(AsmStmtClass), AsmLoc(asmloc), RParenLoc(rparenloc), AsmStr(asmstr)
- , NumOutputs(numoutputs), NumInputs(numinputs)
+ , IsVolatile(isvolatile), NumOutputs(numoutputs), NumInputs(numinputs)
{
for (unsigned i = 0, e = numinputs + numoutputs; i != e; i++) {
Names.push_back(names[i]);