mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[Object]
Make Binary::TypeID more granular, to distinguish between ELF 32/64 little/big git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -484,7 +484,8 @@ public:
|
||||
// Methods for type inquiry through isa, cast, and dyn_cast
|
||||
bool isDyldType() const { return isDyldELFObject; }
|
||||
static inline bool classof(const Binary *v) {
|
||||
return v->getType() == Binary::isELF;
|
||||
return v->getType() == getELFType(target_endianness == support::little,
|
||||
is64Bits);
|
||||
}
|
||||
static inline bool classof(const ELFObjectFile *v) { return true; }
|
||||
};
|
||||
@@ -1257,7 +1258,8 @@ void ELFObjectFile<target_endianness, is64Bits>
|
||||
template<support::endianness target_endianness, bool is64Bits>
|
||||
ELFObjectFile<target_endianness, is64Bits>::ELFObjectFile(MemoryBuffer *Object
|
||||
, error_code &ec)
|
||||
: ObjectFile(Binary::isELF, Object, ec)
|
||||
: ObjectFile(getELFType(target_endianness == support::little, is64Bits),
|
||||
Object, ec)
|
||||
, isDyldELFObject(false)
|
||||
, SectionHeaderTable(0)
|
||||
, dot_shstrtab_sec(0)
|
||||
|
Reference in New Issue
Block a user