1//===- X86TargetMachine.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_X86_TARGET_MACHINE_H
10#define MCLD_X86_TARGET_MACHINE_H
11#include "mcld/Target/TargetMachine.h"
12#include "X86.h"
13
14namespace mcld
15{
16
17class X86TargetMachine : public LLVMTargetMachine
18{
19protected:
20  MCLDInfo *m_pLDInfo;
21
22public:
23  X86TargetMachine(llvm::TargetMachine &pTM,
24                       const mcld::Target &pTarget,
25                       const std::string &pTriple);
26
27  virtual ~X86TargetMachine();
28
29  mcld::MCLDInfo& getLDInfo()
30  { return *m_pLDInfo; }
31
32  const mcld::MCLDInfo& getLDInfo() const
33  { return *m_pLDInfo; }
34
35};
36
37} // namespace of mcld
38
39#endif
40
41