1//===- ResolveInfoFactory.h -----------------------------------------------===//
2//
3//                     The MCLinker Project
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#ifndef MCLD_RESOLVE_INFO_FACTORY_H
10#define MCLD_RESOLVE_INFO_FACTORY_H
11#ifdef ENABLE_UNITTEST
12#include <gtest.h>
13#endif
14#include "mcld/LD/ResolveInfo.h"
15
16namespace mcld
17{
18
19/** \class ResolveInfoFactory
20 *  \brief ResolveInfoFactory creates ResolveInfos.
21 */
22class ResolveInfoFactory
23{
24public:
25  typedef ResolveInfo           entry_type;
26  typedef ResolveInfo::key_type key_type;
27
28public:
29  entry_type* produce(const key_type& pKey);
30  void destroy(entry_type* pEntry);
31
32};
33
34} // namespace of mcld
35
36#endif
37
38