diff options
| author | Michael J. Spencer <bigcheesegs@gmail.com> | 2014-11-18 01:14:25 +0000 |
|---|---|---|
| committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2014-11-18 01:14:25 +0000 |
| commit | bbd875b6ad69d8c2bffb96698e25ea2e401960eb (patch) | |
| tree | cd4466dd186d06c12c518b2031f9c36ad687d411 /llvm/lib/Object/ObjectFile.cpp | |
| parent | ea508635deaeeceb5629d0b09e17b03f8b767ade (diff) | |
Support ELF files of unknown type.
llvm-svn: 222208
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
| -rw-r--r-- | llvm/lib/Object/ObjectFile.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index 9565d02f35a3..fd7827142532 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -60,6 +60,7 @@ ObjectFile::createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type) { case sys::fs::file_magic::macho_universal_binary: case sys::fs::file_magic::windows_resource: return object_error::invalid_file_type; + 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: |
