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

Daniel Dunbar daniel at zuster.org
Tue Oct 14 09:55:17 PDT 2008


Author: ddunbar
Date: Tue Oct 14 11:55:17 2008
New Revision: 57501

URL: http://llvm.org/viewvc/llvm-project?rev=57501&view=rev
Log:
Move Type::EmitImpl into header, add FIXME to make abstract.

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

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

==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Tue Oct 14 11:55:17 2008
@@ -426,7 +426,10 @@
   
   /// EmitImpl - Subclasses must implement this method in order to
   ///  be serialized.
-  virtual void EmitImpl(llvm::Serializer& S) const;  
+  // FIXME: Make this abstract once implemented.
+  virtual void EmitImpl(llvm::Serializer& S) const {
+    assert (false && "Serializization for type not supported.");
+  }
 };
 
 /// ASQualType - TR18037 (C embedded extensions) 6.2.5p26 

Modified: cfe/trunk/lib/AST/TypeSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypeSerialization.cpp?rev=57501&r1=57500&r2=57501&view=diff

==============================================================================
--- cfe/trunk/lib/AST/TypeSerialization.cpp (original)
+++ cfe/trunk/lib/AST/TypeSerialization.cpp Tue Oct 14 11:55:17 2008
@@ -53,10 +53,6 @@
     EmitImpl(S);
 }
 
-void Type::EmitImpl(Serializer& S) const {
-  assert (false && "Serializization for type not supported.");
-}
-
 void Type::Create(ASTContext& Context, unsigned i, Deserializer& D) {
   Type::TypeClass K = static_cast<Type::TypeClass>(D.ReadInt());
   SerializedPtrID PtrID = D.ReadPtrID();  





More information about the cfe-commits mailing list