comparison include/llvm/MC/MCWinCOFFObjectWriter.h @ 83:60c9769439b8

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children afa8332a0e37
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
9 9
10 #ifndef LLVM_MC_MCWINCOFFOBJECTWRITER_H 10 #ifndef LLVM_MC_MCWINCOFFOBJECTWRITER_H
11 #define LLVM_MC_MCWINCOFFOBJECTWRITER_H 11 #define LLVM_MC_MCWINCOFFOBJECTWRITER_H
12 12
13 namespace llvm { 13 namespace llvm {
14 class MCFixup; 14 class MCAsmBackend;
15 class MCObjectWriter; 15 class MCFixup;
16 class MCValue; 16 class MCObjectWriter;
17 class raw_ostream; 17 class MCValue;
18 class raw_ostream;
18 19
19 class MCWinCOFFObjectTargetWriter { 20 class MCWinCOFFObjectTargetWriter {
20 virtual void anchor(); 21 virtual void anchor();
21 const unsigned Machine; 22 const unsigned Machine;
22 23
25 26
26 public: 27 public:
27 virtual ~MCWinCOFFObjectTargetWriter() {} 28 virtual ~MCWinCOFFObjectTargetWriter() {}
28 29
29 unsigned getMachine() const { return Machine; } 30 unsigned getMachine() const { return Machine; }
30 virtual unsigned getRelocType(const MCValue &Target, 31 virtual unsigned getRelocType(const MCValue &Target, const MCFixup &Fixup,
31 const MCFixup &Fixup, 32 bool IsCrossSection,
32 bool IsCrossSection) const = 0; 33 const MCAsmBackend &MAB) const = 0;
33 virtual bool recordRelocation(const MCFixup &) const { return true; } 34 virtual bool recordRelocation(const MCFixup &) const { return true; }
34 }; 35 };
35 36
36 /// \brief Construct a new Win COFF writer instance. 37 /// \brief Construct a new Win COFF writer instance.
37 /// 38 ///