Created header file to include minimal forward references needed for

object serialization.

llvm-svn: 43352
This commit is contained in:
Ted Kremenek 2007-10-25 18:19:29 +00:00
parent 991b6b9d0c
commit 0cf94e9c91
2 changed files with 29 additions and 6 deletions

View File

@ -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> {\

View File

@ -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