diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-22 02:28:24 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-22 02:28:24 +0000 |
commit | 4982159b885f1db4cc29b1695841121db85a64a1 (patch) | |
tree | 06a7a01b3552077a4182bd1e50c7a6044dda1b7c /lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp | |
parent | 3cfecf5cc2279cbbcdd497f2898161e40e690c86 (diff) | |
download | external_llvm-4982159b885f1db4cc29b1695841121db85a64a1.zip external_llvm-4982159b885f1db4cc29b1695841121db85a64a1.tar.gz external_llvm-4982159b885f1db4cc29b1695841121db85a64a1.tar.bz2 |
Move the MBlaze ELF writer bits to lib/Target/MBlaze.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp')
-rw-r--r-- | lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp b/lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp index c0c2106..72e6067 100644 --- a/lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp +++ b/lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp @@ -39,12 +39,6 @@ static unsigned getFixupKindSize(unsigned Kind) { namespace { -class MBlazeELFObjectWriter : public MCELFObjectTargetWriter { -public: - MBlazeELFObjectWriter(uint8_t OSABI) - : MCELFObjectTargetWriter(/*is64Bit*/ false, OSABI, ELF::EM_MBLAZE, - /*HasRelocationAddend*/ true) {} -}; class MBlazeAsmBackend : public MCAsmBackend { public: @@ -131,8 +125,7 @@ public: uint64_t Value) const; MCObjectWriter *createObjectWriter(raw_ostream &OS) const { - return createELFObjectWriter(new MBlazeELFObjectWriter(OSABI), OS, - /*IsLittleEndian*/ false); + return createMBlazeELFObjectWriter(OS, OSABI); } }; |