Index: lld/trunk/include/lld/Core/DefinedAtom.h =================================================================== --- lld/trunk/include/lld/Core/DefinedAtom.h +++ lld/trunk/include/lld/Core/DefinedAtom.h @@ -270,12 +270,6 @@ /// is R__. virtual ContentPermissions permissions() const; - /// \brief means this is a zero size atom that exists to provide an alternate - /// name for another atom. Alias atoms must have a special Reference to the - /// atom they alias which the layout engine recognizes and forces the alias - /// atom to layout right before the target atom. - virtual bool isAlias() const = 0; - /// \brief returns a reference to the raw (unrelocated) bytes of this Atom's /// content. virtual ArrayRef rawContent() const = 0; Index: lld/trunk/include/lld/ReaderWriter/Simple.h =================================================================== --- lld/trunk/include/lld/ReaderWriter/Simple.h +++ lld/trunk/include/lld/ReaderWriter/Simple.h @@ -140,8 +140,6 @@ return DefinedAtom::deadStripNormal; } - bool isAlias() const override { return false; } - DefinedAtom::reference_iterator begin() const override { uintptr_t index = 0; const void *it = reinterpret_cast(index); Index: lld/trunk/lib/ReaderWriter/CoreLinkingContext.cpp =================================================================== --- lld/trunk/lib/ReaderWriter/CoreLinkingContext.cpp +++ lld/trunk/lib/ReaderWriter/CoreLinkingContext.cpp @@ -63,8 +63,6 @@ return DefinedAtom::permR_X; } - bool isAlias() const override { return false; } - ArrayRef rawContent() const override { return ArrayRef(); } reference_iterator begin() const override { @@ -128,8 +126,6 @@ return DefinedAtom::permRW_; } - bool isAlias() const override { return false; } - ArrayRef rawContent() const override { return ArrayRef(); } reference_iterator begin() const override { @@ -273,4 +269,3 @@ } Writer &CoreLinkingContext::writer() const { return *_writer; } - Index: lld/trunk/lib/ReaderWriter/ELF/Atoms.h =================================================================== --- lld/trunk/lib/ReaderWriter/ELF/Atoms.h +++ lld/trunk/lib/ReaderWriter/ELF/Atoms.h @@ -381,9 +381,6 @@ } } - // FIXME: Not Sure if ELF supports alias atoms. Find out more. - bool isAlias() const override { return false; } - ArrayRef rawContent() const override { return _contentData; } DefinedAtom::reference_iterator begin() const override { @@ -487,8 +484,6 @@ virtual bool isThumb() const { return false; } - bool isAlias() const override { return false; } - ArrayRef rawContent() const override { return _contentData; } DefinedAtom::reference_iterator begin() const override { @@ -571,8 +566,6 @@ ContentPermissions permissions() const override { return permRW_; } - bool isAlias() const override { return false; } - ArrayRef rawContent() const override { return ArrayRef(); } DefinedAtom::reference_iterator begin() const override { Index: lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp =================================================================== --- lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp +++ lld/trunk/lib/ReaderWriter/Native/ReaderNative.cpp @@ -98,10 +98,6 @@ return (DefinedAtom::ContentPermissions)(attributes().permissions); } - bool isAlias() const override { - return (attributes().alias != 0); - } - ArrayRef rawContent() const override; reference_iterator begin() const override; Index: lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp =================================================================== --- lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp +++ lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp @@ -431,7 +431,6 @@ attrs.deadStrip = atom.deadStrip(); attrs.dynamicExport = atom.dynamicExport(); attrs.permissions = atom.permissions(); - attrs.alias = atom.isAlias(); return attrs; } Index: lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h =================================================================== --- lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h +++ lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h @@ -105,7 +105,6 @@ return sectionPositionAny; } DeadStripKind deadStrip() const override { return deadStripNormal; } - bool isAlias() const override { return false; } Kind getKind() const { return _kind; } Index: lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp =================================================================== --- lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp +++ lld/trunk/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp @@ -892,7 +892,6 @@ DeadStripKind deadStrip() const override { return _deadStrip; } DynamicExport dynamicExport() const override { return _dynamicExport; } ContentPermissions permissions() const override { return _permissions; } - bool isAlias() const override { return false; } bool isGroupChild() const { return _isGroupChild; } ArrayRef rawContent() const override { if (!occupiesDiskSpace())