diff options
Diffstat (limited to 'lib/Target/X86/X86AsmBackend.cpp')
-rw-r--r-- | lib/Target/X86/X86AsmBackend.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/Target/X86/X86AsmBackend.cpp b/lib/Target/X86/X86AsmBackend.cpp index 5e7ce0bd1f..c39d07b12e 100644 --- a/lib/Target/X86/X86AsmBackend.cpp +++ b/lib/Target/X86/X86AsmBackend.cpp @@ -16,7 +16,6 @@ #include "llvm/MC/MCExpr.h" #include "llvm/MC/MCFixupKindInfo.h" #include "llvm/MC/MCMachObjectWriter.h" -#include "llvm/MC/MCObjectFormat.h" #include "llvm/MC/MCObjectWriter.h" #include "llvm/MC/MCSectionCOFF.h" #include "llvm/MC/MCSectionELF.h" @@ -295,8 +294,6 @@ bool X86AsmBackend::WriteNopData(uint64_t Count, MCObjectWriter *OW) const { namespace { class ELFX86AsmBackend : public X86AsmBackend { - MCELFObjectFormat Format; - public: Triple::OSType OSType; ELFX86AsmBackend(const Target &T, Triple::OSType _OSType) @@ -304,10 +301,6 @@ public: HasReliableSymbolDifference = true; } - virtual const MCObjectFormat &getObjectFormat() const { - return Format; - } - virtual bool doesSectionRequireSymbols(const MCSection &Section) const { const MCSectionELF &ES = static_cast<const MCSectionELF&>(Section); return ES.getFlags() & MCSectionELF::SHF_MERGE; @@ -340,7 +333,6 @@ public: class WindowsX86AsmBackend : public X86AsmBackend { bool Is64Bit; - MCCOFFObjectFormat Format; public: WindowsX86AsmBackend(const Target &T, bool is64Bit) @@ -348,25 +340,15 @@ public: , Is64Bit(is64Bit) { } - virtual const MCObjectFormat &getObjectFormat() const { - return Format; - } - MCObjectWriter *createObjectWriter(raw_ostream &OS) const { return createWinCOFFObjectWriter(OS, Is64Bit); } }; class DarwinX86AsmBackend : public X86AsmBackend { - MCMachOObjectFormat Format; - public: DarwinX86AsmBackend(const Target &T) : X86AsmBackend(T) { } - - virtual const MCObjectFormat &getObjectFormat() const { - return Format; - } }; class DarwinX86_32AsmBackend : public DarwinX86AsmBackend { |