summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Binary.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2014-11-18 01:14:25 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2014-11-18 01:14:25 +0000
commitbbd875b6ad69d8c2bffb96698e25ea2e401960eb (patch)
treecd4466dd186d06c12c518b2031f9c36ad687d411 /llvm/lib/Object/Binary.cpp
parentea508635deaeeceb5629d0b09e17b03f8b767ade (diff)
downloadbcm5719-llvm-bbd875b6ad69d8c2bffb96698e25ea2e401960eb.tar.gz
bcm5719-llvm-bbd875b6ad69d8c2bffb96698e25ea2e401960eb.zip
Support ELF files of unknown type.
llvm-svn: 222208
Diffstat (limited to 'llvm/lib/Object/Binary.cpp')
-rw-r--r--llvm/lib/Object/Binary.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp
index d23ee590569..c56eeb1ea8b 100644
--- a/llvm/lib/Object/Binary.cpp
+++ b/llvm/lib/Object/Binary.cpp
@@ -43,6 +43,7 @@ ErrorOr<std::unique_ptr<Binary>> object::createBinary(MemoryBufferRef Buffer,
switch (Type) {
case sys::fs::file_magic::archive:
return Archive::create(Buffer);
+ case sys::fs::file_magic::elf:
case sys::fs::file_magic::elf_relocatable:
case sys::fs::file_magic::elf_executable:
case sys::fs::file_magic::elf_shared_object:
OpenPOWER on IntegriCloud