[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:
Rui Ueyama 2013-06-13 00:26:16 +00:00
parent cc14c02f7f
commit 8338716e8d
8 changed files with 0 additions and 31 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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;
}

View File

@ -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;

View File

@ -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);
}

View File

@ -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();
}

View File

@ -176,10 +176,6 @@ public:
return perm___;
}
virtual bool isThumb() const {
return false;
}
virtual bool isAlias() const {
return false;
}

View File

@ -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>(