diff options
author | Rui Ueyama <ruiu@google.com> | 2015-04-14 00:59:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-04-14 00:59:04 +0000 |
commit | a5b6859ac44079a7d0c9aefe25d2a87016edd87c (patch) | |
tree | cfb4ed30f760ce6d029aeab6bc0959182cc24526 /lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h | |
parent | e7515ebf66af838bcec6720c78c716f46a7bc8e3 (diff) | |
download | bcm5719-llvm-a5b6859ac44079a7d0c9aefe25d2a87016edd87c.tar.gz bcm5719-llvm-a5b6859ac44079a7d0c9aefe25d2a87016edd87c.zip |
ELF: Use less templates for ELF types.
These classes are templated but actually instantiated for only
one ELF type.
llvm-svn: 234830
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h')
-rw-r--r-- | lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h index 6ba53017c60..80a2f3d4850 100644 --- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h +++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.h @@ -15,19 +15,18 @@ namespace lld { namespace elf { -template <class ELFT> class ARMTargetLayout; +class ARMTargetLayout; class ARMTargetRelocationHandler final : public TargetRelocationHandler { public: - ARMTargetRelocationHandler(ARMTargetLayout<ELF32LE> &layout) - : _armLayout(layout) {} + ARMTargetRelocationHandler(ARMTargetLayout &layout) : _armLayout(layout) {} std::error_code applyRelocation(ELFWriter &, llvm::FileOutputBuffer &, const lld::AtomLayout &, const Reference &) const override; private: - ARMTargetLayout<ELF32LE> &_armLayout; + ARMTargetLayout &_armLayout; }; } // end namespace elf |