summaryrefslogtreecommitdiff
path: root/include/llvm/Object/Binary.h
diff options
context:
space:
mode:
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 89cd24bfb9..cd092fd8e4 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);