forked from OSchip/llvm-project
Re-submit r207884: Remove dead code
Differential Revision: http://reviews.llvm.org/D3599 llvm-svn: 207989
This commit is contained in:
parent
ceaaa8d09e
commit
beacd25780
|
@ -270,12 +270,6 @@ public:
|
|||
/// 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<uint8_t> rawContent() const = 0;
|
||||
|
|
|
@ -140,8 +140,6 @@ public:
|
|||
return DefinedAtom::deadStripNormal;
|
||||
}
|
||||
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
DefinedAtom::reference_iterator begin() const override {
|
||||
uintptr_t index = 0;
|
||||
const void *it = reinterpret_cast<const void *>(index);
|
||||
|
|
|
@ -63,8 +63,6 @@ public:
|
|||
return DefinedAtom::permR_X;
|
||||
}
|
||||
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); }
|
||||
|
||||
reference_iterator begin() const override {
|
||||
|
@ -128,8 +126,6 @@ public:
|
|||
return DefinedAtom::permRW_;
|
||||
}
|
||||
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); }
|
||||
|
||||
reference_iterator begin() const override {
|
||||
|
@ -273,4 +269,3 @@ void CoreLinkingContext::addPasses(PassManager &pm) {
|
|||
}
|
||||
|
||||
Writer &CoreLinkingContext::writer() const { return *_writer; }
|
||||
|
||||
|
|
|
@ -381,9 +381,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: Not Sure if ELF supports alias atoms. Find out more.
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
ArrayRef<uint8_t> rawContent() const override { return _contentData; }
|
||||
|
||||
DefinedAtom::reference_iterator begin() const override {
|
||||
|
@ -487,8 +484,6 @@ public:
|
|||
|
||||
virtual bool isThumb() const { return false; }
|
||||
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
ArrayRef<uint8_t> rawContent() const override { return _contentData; }
|
||||
|
||||
DefinedAtom::reference_iterator begin() const override {
|
||||
|
@ -571,8 +566,6 @@ public:
|
|||
|
||||
ContentPermissions permissions() const override { return permRW_; }
|
||||
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
ArrayRef<uint8_t> rawContent() const override { return ArrayRef<uint8_t>(); }
|
||||
|
||||
DefinedAtom::reference_iterator begin() const override {
|
||||
|
|
|
@ -98,10 +98,6 @@ public:
|
|||
return (DefinedAtom::ContentPermissions)(attributes().permissions);
|
||||
}
|
||||
|
||||
bool isAlias() const override {
|
||||
return (attributes().alias != 0);
|
||||
}
|
||||
|
||||
ArrayRef<uint8_t> rawContent() const override;
|
||||
|
||||
reference_iterator begin() const override;
|
||||
|
|
|
@ -431,7 +431,6 @@ private:
|
|||
attrs.deadStrip = atom.deadStrip();
|
||||
attrs.dynamicExport = atom.dynamicExport();
|
||||
attrs.permissions = atom.permissions();
|
||||
attrs.alias = atom.isAlias();
|
||||
return attrs;
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,6 @@ public:
|
|||
return sectionPositionAny;
|
||||
}
|
||||
DeadStripKind deadStrip() const override { return deadStripNormal; }
|
||||
bool isAlias() const override { return false; }
|
||||
|
||||
Kind getKind() const { return _kind; }
|
||||
|
||||
|
|
|
@ -892,7 +892,6 @@ template <> struct MappingTraits<const lld::DefinedAtom *> {
|
|||
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<uint8_t> rawContent() const override {
|
||||
if (!occupiesDiskSpace())
|
||||
|
|
Loading…
Reference in New Issue