[llvm-commits] [llvm] r43352 - in /llvm/trunk/include/llvm/Bitcode: Serialization.h SerializationFwd.h
Ted Kremenek
kremenek at apple.com
Thu Oct 25 11:19:29 PDT 2007
Author: kremenek
Date: Thu Oct 25 13:19:29 2007
New Revision: 43352
URL: http://llvm.org/viewvc/llvm-project?rev=43352&view=rev
Log:
Created header file to include minimal forward references needed for
object serialization.
Added:
llvm/trunk/include/llvm/Bitcode/SerializationFwd.h
Modified:
llvm/trunk/include/llvm/Bitcode/Serialization.h
Modified: llvm/trunk/include/llvm/Bitcode/Serialization.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Serialization.h?rev=43352&r1=43351&r2=43352&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialization.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialization.h Thu Oct 25 13:19:29 2007
@@ -7,19 +7,17 @@
//
//===----------------------------------------------------------------------===//
//
-// This file defines the interface for generic object serialization to
-// LLVM bitcode.
+// This file defines traits for primitive types used for both object
+// serialization and deserialization.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_BITCODE_SERIALIZE
#define LLVM_BITCODE_SERIALIZE
-namespace llvm {
+#include "llvm/Bitcode/SerializationFwd.h"
-class Serializer;
-class Deserializer;
-template <typename T> struct SerializeTrait;
+namespace llvm {
#define SERIALIZE_INT_TRAIT(TYPE)\
template <> struct SerializeTrait<TYPE> {\
Added: llvm/trunk/include/llvm/Bitcode/SerializationFwd.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/SerializationFwd.h?rev=43352&view=auto
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/SerializationFwd.h (added)
+++ llvm/trunk/include/llvm/Bitcode/SerializationFwd.h Thu Oct 25 13:19:29 2007
@@ -0,0 +1,25 @@
+//==- SerializationFwd.h - Forward references for Serialization ---*- C++ -*-=//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Ted Kremenek and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file provides forward references for bitcode object serialization.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_BITCODE_SERIALIZE_FWD
+#define LLVM_BITCODE_SERIALIZE_FWD
+
+namespace llvm {
+
+class Serializer;
+class Deserializer;
+template <typename T> struct SerializeTrait;
+
+} // end namespace llvm
+
+#endif
More information about the llvm-commits
mailing list