1 //===-- llvm/MC/MCWinCOFFObjectWriter.h - Win COFF Object Writer *- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_MC_MCWINCOFFOBJECTWRITER_H
11 #define LLVM_MC_MCWINCOFFOBJECTWRITER_H
17 class MCWinCOFFObjectTargetWriter {
18 const unsigned Machine;
21 MCWinCOFFObjectTargetWriter(unsigned Machine_);
24 virtual ~MCWinCOFFObjectTargetWriter() {}
26 unsigned getMachine() const { return Machine; }
27 virtual unsigned getRelocType(unsigned FixupKind) const = 0;
30 /// \brief Construct a new Win COFF writer instance.
32 /// \param MOTW - The target specific WinCOFF writer subclass.
33 /// \param OS - The stream to write to.
34 /// \returns The constructed object writer.
35 MCObjectWriter *createWinCOFFObjectWriter(MCWinCOFFObjectTargetWriter *MOTW,
37 } // End llvm namespace