From 185e8a076d31566eeb7a9b42be3a7daba3da2658 Mon Sep 17 00:00:00 2001 From: Shankar Easwaran Date: Tue, 29 Jan 2013 20:13:16 +0000 Subject: [PATCH] remove targetInfo and layout from ELFTargetLayout llvm-svn: 173824 --- lld/lib/ReaderWriter/ELF/ELFTargetLayout.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lld/lib/ReaderWriter/ELF/ELFTargetLayout.h b/lld/lib/ReaderWriter/ELF/ELFTargetLayout.h index 20a701d..5416c02 100644 --- a/lld/lib/ReaderWriter/ELF/ELFTargetLayout.h +++ b/lld/lib/ReaderWriter/ELF/ELFTargetLayout.h @@ -21,8 +21,8 @@ namespace elf { /// be changed in the final layout template class ELFTargetLayout : public DefaultELFLayout { public: - ELFTargetLayout(ELFTargetInfo &targetInfo, DefaultELFLayout &layout) - : _targetInfo(targetInfo), _layout(layout) { + ELFTargetLayout(ELFTargetInfo &targetInfo) + : DefaultELFLayout(targetInfo) { } /// isTargetSection provides a way to determine if the section that @@ -57,9 +57,6 @@ public: Section *getSection(const StringRef name, DefinedAtom::ContentPermissions permissions) = 0; -private: - const ELFTargetInfo &_targetInfo; - const DefaultELFLayout &_layout; }; } // end namespace elf } // end namespace lld -- 2.7.4