commit | bbd875b6ad69d8c2bffb96698e25ea2e401960eb | [log] [tgz] |
---|---|---|
author | Michael J. Spencer <bigcheesegs@gmail.com> | Tue Nov 18 01:14:25 2014 +0000 |
committer | Michael J. Spencer <bigcheesegs@gmail.com> | Tue Nov 18 01:14:25 2014 +0000 |
tree | cd4466dd186d06c12c518b2031f9c36ad687d411 | |
parent | ea508635deaeeceb5629d0b09e17b03f8b767ade [diff] [blame] |
Support ELF files of unknown type. llvm-svn: 222208
diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp index d23ee59..c56eeb1 100644 --- a/llvm/lib/Object/Binary.cpp +++ b/llvm/lib/Object/Binary.cpp
@@ -43,6 +43,7 @@ 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: