[cfe-commits] r161503 - in /cfe/trunk: include/clang/AST/Stmt.h lib/AST/Stmt.cpp lib/Sema/SemaStmt.cpp

Chad Rosier mcrosier at apple.com
Wed Aug 8 10:35:36 PDT 2012


Author: mcrosier
Date: Wed Aug  8 12:35:36 2012
New Revision: 161503

URL: http://llvm.org/viewvc/llvm-project?rev=161503&view=rev
Log:
Add the IsSimple/IsVolatile parameters to the MSAsmStmt constructor.

Modified:
    cfe/trunk/include/clang/AST/Stmt.h
    cfe/trunk/lib/AST/Stmt.cpp
    cfe/trunk/lib/Sema/SemaStmt.cpp

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=161503&r1=161502&r2=161503&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Wed Aug  8 12:35:36 2012
@@ -1632,8 +1632,8 @@
   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; }

Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=161503&r1=161502&r2=161503&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Wed Aug  8 12:35:36 2012
@@ -584,10 +584,11 @@
 }
 
 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)

Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=161503&r1=161502&r2=161503&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Wed Aug  8 12:35:36 2012
@@ -2755,7 +2755,8 @@
   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);
 }





More information about the cfe-commits mailing list