diff options
Diffstat (limited to 'include/llvm/MC/MCObjectWriter.h')
-rw-r--r-- | include/llvm/MC/MCObjectWriter.h | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h index 0ecebe42a0b9..86bcbb6861d7 100644 --- a/include/llvm/MC/MCObjectWriter.h +++ b/include/llvm/MC/MCObjectWriter.h @@ -1,4 +1,4 @@ -//===-- llvm/MC/MCObjectWriter.h - Object File Writer Interface -*- C++ -*-===// +//===- llvm/MC/MCObjectWriter.h - Object File Writer Interface --*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -11,13 +11,15 @@ #define LLVM_MC_MCOBJECTWRITER_H #include "llvm/ADT/SmallVector.h" -#include "llvm/Support/Compiler.h" -#include "llvm/Support/DataTypes.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/Endian.h" #include "llvm/Support/EndianStream.h" #include "llvm/Support/raw_ostream.h" #include <cassert> +#include <cstdint> namespace llvm { + class MCAsmLayout; class MCAssembler; class MCFixup; @@ -38,15 +40,12 @@ class MCValue; /// The object writer also contains a number of helper methods for writing /// binary data to the output stream. class MCObjectWriter { - MCObjectWriter(const MCObjectWriter &) = delete; - void operator=(const MCObjectWriter &) = delete; - raw_pwrite_stream *OS; protected: unsigned IsLittleEndian : 1; -protected: // Can only create subclasses. + // Can only create subclasses. MCObjectWriter(raw_pwrite_stream &OS, bool IsLittleEndian) : OS(&OS), IsLittleEndian(IsLittleEndian) {} @@ -55,6 +54,8 @@ protected: // Can only create subclasses. } public: + MCObjectWriter(const MCObjectWriter &) = delete; + MCObjectWriter &operator=(const MCObjectWriter &) = delete; virtual ~MCObjectWriter(); /// lifetime management @@ -108,11 +109,6 @@ public: bool InSet, bool IsPCRel) const; - /// True if this symbol (which is a variable) is weak. This is not - /// just STB_WEAK, but more generally whether or not we can evaluate - /// past it. - virtual bool isWeak(const MCSymbol &Sym) const; - /// Write the object file. /// /// This routine is called by the assembler after layout and relaxation is @@ -199,6 +195,6 @@ public: /// @} }; -} // End llvm namespace +} // end namespace llvm -#endif +#endif // LLVM_MC_MCOBJECTWRITER_H |