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/Support/Path.cpp | |
parent | ea508635deaeeceb5629d0b09e17b03f8b767ade (diff) | |
download | llvm-bbd875b6ad69d8c2bffb96698e25ea2e401960eb.zip llvm-bbd875b6ad69d8c2bffb96698e25ea2e401960eb.tar.gz llvm-bbd875b6ad69d8c2bffb96698e25ea2e401960eb.tar.bz2 |
Support ELF files of unknown type.
llvm-svn: 222208
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 9937978..a7a9919 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -958,6 +958,9 @@ file_magic identify_magic(StringRef Magic) { case 3: return file_magic::elf_shared_object; case 4: return file_magic::elf_core; } + else + // It's still some type of ELF file. + return file_magic::elf; } break; |