blob: 08bb2375e2cc0b2f32b40155e96e4e0ae2bcd23d (
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
37
38
39
40
|
//===- DynObjWriter.h -----------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_DYNAMIC_SHARED_OBJECT_WRITER_H
#define MCLD_DYNAMIC_SHARED_OBJECT_WRITER_H
#ifdef ENABLE_UNITTEST
#include <gtest.h>
#endif
#include <mcld/MC/MCLDOutput.h>
#include <mcld/LD/LDWriter.h>
#include <llvm/Support/system_error.h>
namespace mcld
{
/** \class DynObjWriter
* \brief DynObjWriter provides an common interface for different object
* formats.
*/
class DynObjWriter : public LDWriter
{
protected:
// force to have a TargetLDBackend
DynObjWriter(TargetLDBackend& pLDBackend)
{ }
public:
virtual ~DynObjWriter() { }
virtual llvm::error_code writeDynObj(Output& pOutput) = 0;
};
} // namespace of mcld
#endif
|