summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Archive.cpp
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
commitd53422d1a73ba6b9c3fe6e53ff3e1ff7630fb20c (patch)
tree7bb3120f30e5574d34964733920768260f4c6f49 /llvm/lib/Object/Archive.cpp
parent4fccc877c917de08a7ac8afedad74adc3d02f086 (diff)
downloadbcm5719-llvm-d53422d1a73ba6b9c3fe6e53ff3e1ff7630fb20c.tar.gz
bcm5719-llvm-d53422d1a73ba6b9c3fe6e53ff3e1ff7630fb20c.zip
[Object]
Make Binary::TypeID more granular, to distinguish between ELF 32/64 little/big llvm-svn: 152435
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
-rw-r--r--llvm/lib/Object/Archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/Archive.cpp b/llvm/lib/Object/Archive.cpp
index b67377c6341..c5f15bafcfb 100644
--- a/llvm/lib/Object/Archive.cpp
+++ b/llvm/lib/Object/Archive.cpp
@@ -174,7 +174,7 @@ error_code Archive::Child::getAsBinary(OwningPtr<Binary> &Result) const {
}
Archive::Archive(MemoryBuffer *source, error_code &ec)
- : Binary(Binary::isArchive, source) {
+ : Binary(Binary::ID_Archive, source) {
// Check for sufficient magic.
if (!source || source->getBufferSize()
< (8 + sizeof(ArchiveMemberHeader) + 2) // Smallest archive.
OpenPOWER on IntegriCloud