Created header file to include minimal forward references needed for

object serialization.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43352 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2007-10-25 18:19:29 +00:00
parent e949512dfa
commit 3b8ac40e63
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