forked from OSchip/llvm-project
[ARM] Remove isThumb() as it's not used and it's not in the right place.
Architecture specific code should reside in architecture specific directory not in Atom. Looks like there are no efforts being made at this moment to support ARM, so let's remove it for now. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D959 llvm-svn: 183877
This commit is contained in:
parent
cc14c02f7f
commit
8338716e8d
|
@ -253,11 +253,6 @@ public:
|
|||
/// is R__.
|
||||
virtual ContentPermissions permissions() const;
|
||||
|
||||
/// \brief only applicable to ARM code. Tells the linker if the code uses
|
||||
/// thumb or arm instructions. The linker needs to know this to set the low
|
||||
/// bit of pointers to thumb functions.
|
||||
virtual bool isThumb() const = 0;
|
||||
|
||||
/// \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
|
||||
|
|
|
@ -128,8 +128,6 @@ public:
|
|||
return DefinedAtom::deadStripNormal;
|
||||
}
|
||||
|
||||
virtual bool isThumb() const { return false; }
|
||||
|
||||
virtual bool isAlias() const { return false; }
|
||||
|
||||
virtual DefinedAtom::reference_iterator begin() const {
|
||||
|
|
|
@ -84,10 +84,6 @@ public:
|
|||
return DefinedAtom::permR_X;
|
||||
}
|
||||
|
||||
virtual bool isThumb() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool isAlias() const {
|
||||
return false;
|
||||
}
|
||||
|
@ -180,10 +176,6 @@ public:
|
|||
return DefinedAtom::permRW_;
|
||||
}
|
||||
|
||||
virtual bool isThumb() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool isAlias() const {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -439,12 +439,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
// Many non ARM architectures use ELF file format This not really a place to
|
||||
// put a architecture specific method in an atom. A better approach is needed.
|
||||
virtual bool isThumb() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
// FIXME: Not Sure if ELF supports alias atoms. Find out more.
|
||||
virtual bool isAlias() const {
|
||||
return false;
|
||||
|
|
|
@ -94,10 +94,6 @@ public:
|
|||
return (DefinedAtom::ContentPermissions)(attributes().permissions);
|
||||
}
|
||||
|
||||
virtual bool isThumb() const {
|
||||
return false; //(attributes().thumb != 0);
|
||||
}
|
||||
|
||||
virtual bool isAlias() const {
|
||||
return (attributes().alias != 0);
|
||||
}
|
||||
|
|
|
@ -441,7 +441,6 @@ private:
|
|||
= atom.sectionChoice() << 4 | atom.sectionPosition();
|
||||
attrs.deadStrip = atom.deadStrip();
|
||||
attrs.permissions = atom.permissions();
|
||||
//attrs.thumb = atom.isThumb();
|
||||
attrs.alias = atom.isAlias();
|
||||
}
|
||||
|
||||
|
|
|
@ -176,10 +176,6 @@ public:
|
|||
return perm___;
|
||||
}
|
||||
|
||||
virtual bool isThumb() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool isAlias() const {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -933,7 +933,6 @@ struct MappingTraits<const lld::DefinedAtom*> {
|
|||
virtual SectionPosition sectionPosition() const{return _sectionPosition;}
|
||||
virtual DeadStripKind deadStrip() const { return _deadStrip; }
|
||||
virtual ContentPermissions permissions() const { return _permissions; }
|
||||
virtual bool isThumb() const { return false; }
|
||||
virtual bool isAlias() const { return false; }
|
||||
ArrayRef<uint8_t> rawContent() const {
|
||||
return ArrayRef<uint8_t>(
|
||||
|
|
Loading…
Reference in New Issue