virtual uint8_t getBytesInAddress() const;
virtual StringRef getFileFormatName() const;
virtual unsigned getArch() const;
+
+
+ static inline bool classof(const Binary *v) {
+ return v->getType() == isCOFF;
+ }
+ static inline bool classof(const COFFObjectFile *v) { return true; }
};
}
MachOObject *getObject() { return MachOObj; }
+ static inline bool classof(const Binary *v) {
+ return v->getType() == isMachO;
+ }
+ static inline bool classof(const MachOObjectFile *v) { return true; }
+
protected:
virtual error_code getSymbolNext(DataRefImpl Symb, SymbolRef &Res) const;
virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const;
uint64_t getStringTableIndex() const;
ELF::Elf64_Word getSymbolTableIndex(const Elf_Sym *symb) const;
const Elf_Shdr *getSection(const Elf_Sym *symb) const;
+
+ static inline bool classof(const Binary *v) {
+ return v->getType() == isELF;
+ }
+ static inline bool classof(const ELFObjectFile *v) { return true; }
};
} // end namespace