aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Object/Binary.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-06-25 17:54:50 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-06-25 17:54:50 +0000
commit001c9205fca2220480589ec355cb6ec701a37e08 (patch)
tree19335fda23511b41e5ee89fc22367fb418093f33 /include/llvm/Object/Binary.h
parentc44c915372ee453bd63a8b6b3eca586ab6f18545 (diff)
downloadexternal_llvm-001c9205fca2220480589ec355cb6ec701a37e08.zip
external_llvm-001c9205fca2220480589ec355cb6ec701a37e08.tar.gz
external_llvm-001c9205fca2220480589ec355cb6ec701a37e08.tar.bz2
Make Binary the parent of ObjectFile and update children to new interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/Binary.h')
-rw-r--r--include/llvm/Object/Binary.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Object/Binary.h b/include/llvm/Object/Binary.h
index 89cd24b..cd092fd 100644
--- a/include/llvm/Object/Binary.h
+++ b/include/llvm/Object/Binary.h
@@ -38,10 +38,13 @@ protected:
enum {
isArchive,
+
+ // Object and children.
+ isObject,
isCOFF,
isELF,
isMachO,
- isObject
+ lastObject
};
public:
@@ -52,7 +55,7 @@ public:
// Cast methods.
unsigned int getType() const { return TypeID; }
- static inline bool classof(Binary const *v) { return true; }
+ static inline bool classof(const Binary *v) { return true; }
};
error_code createBinary(MemoryBuffer *Source, OwningPtr<Binary> &Result);