summaryrefslogtreecommitdiff
path: root/include/llvm/Object/MachO.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Object/MachO.h')
-rw-r--r--include/llvm/Object/MachO.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h
index 71830aa89b..147987e8f1 100644
--- a/include/llvm/Object/MachO.h
+++ b/include/llvm/Object/MachO.h
@@ -40,6 +40,11 @@ public:
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;