1//===- DynObjReader.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_DYNAMIC_SHARED_OBJECT_READER_H
10#define MCLD_DYNAMIC_SHARED_OBJECT_READER_H
11#ifdef ENABLE_UNITTEST
12#include <gtest.h>
13#endif
14#include "mcld/LD/LDReader.h"
15#include <llvm/Support/system_error.h>
16
17namespace mcld
18{
19
20class TargetLDBackend;
21class Input;
22
23/** \class DynObjReader
24 *  \brief DynObjReader provides an common interface for different object
25 *  formats.
26 */
27class DynObjReader : public LDReader
28{
29protected:
30  DynObjReader()
31  { }
32
33public:
34  virtual ~DynObjReader() { }
35
36  virtual bool readDSO(Input& pFile) = 0;
37
38  virtual bool readSymbols(Input& pFile) = 0;
39
40};
41
42} // namespace of mcld
43
44#endif
45
46