[cfe-commits] r162711 - /cfe/trunk/include/clang/AST/Stmt.h

Chad Rosier mcrosier at apple.com
Mon Aug 27 16:40:17 PDT 2012


Author: mcrosier
Date: Mon Aug 27 18:40:17 2012
New Revision: 162711

URL: http://llvm.org/viewvc/llvm-project?rev=162711&view=rev
Log:
[ms-inline asm] Hoist getNumClobbers into base class.

Modified:
    cfe/trunk/include/clang/AST/Stmt.h

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=162711&r1=162710&r2=162711&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Mon Aug 27 18:40:17 2012
@@ -1443,6 +1443,8 @@
 
   //===--- Other ---===//
 
+  unsigned getNumClobbers() const { return NumClobbers; }
+
   static bool classof(const Stmt *T) {
     return T->getStmtClass() == GCCAsmStmtClass ||
       T->getStmtClass() == MSAsmStmtClass;
@@ -1643,7 +1645,6 @@
   /// This returns -1 if the operand name is invalid.
   int getNamedOperand(StringRef SymbolicName) const;
 
-  unsigned getNumClobbers() const { return NumClobbers; }
   StringLiteral *getClobberStringLiteral(unsigned i) { return Clobbers[i]; }
   const StringLiteral *getClobberStringLiteral(unsigned i) const {
     return Clobbers[i];
@@ -1720,7 +1721,6 @@
 
   //===--- Other ---===//
 
-  unsigned getNumClobbers() const { return NumClobbers; }
   StringRef getClobber(unsigned i) const { return Clobbers[i]; }
 
   SourceRange getSourceRange() const LLVM_READONLY {





More information about the cfe-commits mailing list