summaryrefslogtreecommitdiff
path: root/include/mcld/LD/ResolveInfoFactory.h
blob: 13a26b6b398f92647420158ea508b3e6f8a84eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//===- ResolveInfoFactory.h -----------------------------------------------===//
//
//                     The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_RESOLVE_INFO_FACTORY_H
#define MCLD_RESOLVE_INFO_FACTORY_H
#ifdef ENABLE_UNITTEST
#include <gtest.h>
#endif
#include "mcld/LD/ResolveInfo.h"

namespace mcld
{

/** \class ResolveInfoFactory
 *  \brief ResolveInfoFactory creates ResolveInfos.
 */
class ResolveInfoFactory
{
public:
  typedef ResolveInfo           entry_type;
  typedef ResolveInfo::key_type key_type;

public:
  entry_type* produce(const key_type& pKey);
  void destroy(entry_type* pEntry);

};

} // namespace of mcld

#endif