mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Object: Implement casting for concrete classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142314 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -377,6 +377,11 @@ public:
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user