[lld] r173824 - remove targetInfo and layout from ELFTargetLayout
Shankar Easwaran
shankare at codeaurora.org
Tue Jan 29 12:13:17 PST 2013
Author: shankare
Date: Tue Jan 29 14:13:16 2013
New Revision: 173824
URL: http://llvm.org/viewvc/llvm-project?rev=173824&view=rev
Log:
remove targetInfo and layout from ELFTargetLayout
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFTargetLayout.h
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFTargetLayout.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFTargetLayout.h?rev=173824&r1=173823&r2=173824&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFTargetLayout.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFTargetLayout.h Tue Jan 29 14:13:16 2013
@@ -21,8 +21,8 @@ namespace elf {
/// be changed in the final layout
template <class ELFT> class ELFTargetLayout : public DefaultELFLayout<ELFT> {
public:
- ELFTargetLayout(ELFTargetInfo &targetInfo, DefaultELFLayout<ELFT> &layout)
- : _targetInfo(targetInfo), _layout(layout) {
+ ELFTargetLayout(ELFTargetInfo &targetInfo)
+ : DefaultELFLayout<ELFT>(targetInfo) {
}
/// isTargetSection provides a way to determine if the section that
@@ -57,9 +57,6 @@ public:
Section<ELFT> *getSection(const StringRef name,
DefinedAtom::ContentPermissions permissions) = 0;
-private:
- const ELFTargetInfo &_targetInfo;
- const DefaultELFLayout<ELFT> &_layout;
};
} // end namespace elf
} // end namespace lld
More information about the llvm-commits
mailing list