[cfe-commits] r44130 - /cfe/trunk/AST/TypeSerialization.cpp
Ted Kremenek
kremenek at apple.com
Wed Nov 14 11:33:02 PST 2007
Author: kremenek
Date: Wed Nov 14 13:33:01 2007
New Revision: 44130
URL: http://llvm.org/viewvc/llvm-project?rev=44130&view=rev
Log:
Added missing break statement.
Reordered serialization methods for FunctionTypeProto and FunctionTypeNoProto
to be alphabetical by serialized type name.
Modified:
cfe/trunk/AST/TypeSerialization.cpp
Modified: cfe/trunk/AST/TypeSerialization.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/TypeSerialization.cpp?rev=44130&r1=44129&r2=44130&view=diff
==============================================================================
--- cfe/trunk/AST/TypeSerialization.cpp (original)
+++ cfe/trunk/AST/TypeSerialization.cpp Wed Nov 14 13:33:01 2007
@@ -72,6 +72,7 @@
case Type::ConstantArray:
D.RegisterPtr(PtrID,ConstantArrayType::CreateImpl(Context,D));
+ break;
case Type::FunctionNoProto:
D.RegisterPtr(PtrID,FunctionTypeNoProto::CreateImpl(Context,D));
@@ -137,6 +138,18 @@
// FunctionTypeNoProto
//===----------------------------------------------------------------------===//
+void FunctionTypeNoProto::EmitImpl(Serializer& S) const {
+ S.Emit(getResultType());
+}
+
+Type* FunctionTypeNoProto::CreateImpl(ASTContext& Context, Deserializer& D) {
+ return Context.getFunctionTypeNoProto(QualType::ReadVal(D)).getTypePtr();
+}
+
+//===----------------------------------------------------------------------===//
+// FunctionTypeProto
+//===----------------------------------------------------------------------===//
+
void FunctionTypeProto::EmitImpl(Serializer& S) const {
S.Emit(getResultType());
S.EmitBool(isVariadic());
@@ -161,18 +174,6 @@
}
//===----------------------------------------------------------------------===//
-// FunctionTypeProto
-//===----------------------------------------------------------------------===//
-
-void FunctionTypeNoProto::EmitImpl(Serializer& S) const {
- S.Emit(getResultType());
-}
-
-Type* FunctionTypeNoProto::CreateImpl(ASTContext& Context, Deserializer& D) {
- return Context.getFunctionTypeNoProto(QualType::ReadVal(D)).getTypePtr();
-}
-
-//===----------------------------------------------------------------------===//
// PointerType
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list