aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Object/ObjectFile.h
diff options
context:
space:
mode:
authorDavid Meyer <pdox@google.com>2012-03-09 20:41:57 +0000
committerDavid Meyer <pdox@google.com>2012-03-09 20:41:57 +0000
commit6f9489a86f33624f9ff5388411d12359ce9cef20 (patch)
tree24b05bed8391c0be6059143a5639605ec28f77b0 /include/llvm/Object/ObjectFile.h
parenta8eb6bb408e84ceb468ceb409f4c87308e67b9eb (diff)
[Object]
Make Binary::TypeID more granular, to distinguish between ELF 32/64 little/big git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/ObjectFile.h')
-rw-r--r--include/llvm/Object/ObjectFile.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h
index 1e9d89549d..09eb7fc75e 100644
--- a/include/llvm/Object/ObjectFile.h
+++ b/include/llvm/Object/ObjectFile.h
@@ -372,8 +372,7 @@ public:
static ObjectFile *createObjectFile(MemoryBuffer *Object);
static inline bool classof(const Binary *v) {
- return v->getType() >= isObject &&
- v->getType() < lastObject;
+ return v->isObject();
}
static inline bool classof(const ObjectFile *v) { return true; }