[cfe-commits] r39332 - in /cfe/cfe/trunk: AST/Type.cpp include/clang/AST/Type.h

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:43:13 PDT 2007


Author: sabre
Date: Wed Jul 11 11:43:13 2007
New Revision: 39332

URL: http://llvm.org/viewvc/llvm-project?rev=39332&view=rev
Log:
move a method out of line

Modified:
    cfe/cfe/trunk/AST/Type.cpp
    cfe/cfe/trunk/include/clang/AST/Type.h

Modified: cfe/cfe/trunk/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/Type.cpp?rev=39332&r1=39331&r2=39332&view=diff

==============================================================================
--- cfe/cfe/trunk/AST/Type.cpp (original)
+++ cfe/cfe/trunk/AST/Type.cpp Wed Jul 11 11:43:13 2007
@@ -84,6 +84,11 @@
   ID.AddInteger(isVariadic);
 }
 
+void FunctionTypeProto::Profile(FoldingSetNodeID &ID) {
+  Profile(ID, getResultType(), ArgInfo, NumArgs, isVariadic());
+}
+
+
 bool RecordType::classof(const Type *T) {
   if (const TaggedType *TT = dyn_cast<TaggedType>(T))
     return isa<RecordDecl>(TT->getDecl());

Modified: cfe/cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/Type.h?rev=39332&r1=39331&r2=39332&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/cfe/trunk/include/clang/AST/Type.h Wed Jul 11 11:43:13 2007
@@ -382,9 +382,7 @@
   }
   static bool classof(const FunctionTypeProto *) { return true; }
   
-  void Profile(FoldingSetNodeID &ID) {
-    Profile(ID, getResultType(), ArgInfo, NumArgs, isVariadic());
-  }
+  void Profile(FoldingSetNodeID &ID);
   static void Profile(FoldingSetNodeID &ID, TypeRef Result, TypeRef* ArgTys,
                       unsigned NumArgs, bool isVariadic);
 };





More information about the cfe-commits mailing list