summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-02-25 22:59:20 +0000
committerJustin Bogner <mail@justinbogner.com>2015-02-25 22:59:20 +0000
commita7ad4b3f3b841a95510ddaab2ee4e998d9ed0a2a (patch)
tree32c379aec2f5610826db98bcb031d19075c021ae /llvm/lib/Object/ObjectFile.cpp
parent2e427d4dbd4ca8cae143b4096d0f64eb503a555c (diff)
downloadbcm5719-llvm-a7ad4b3f3b841a95510ddaab2ee4e998d9ed0a2a.tar.gz
bcm5719-llvm-a7ad4b3f3b841a95510ddaab2ee4e998d9ed0a2a.zip
Object: Handle Mach-O kext bundle files
This particular subtype of Mach-O was missing. Add it. llvm-svn: 230567
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index fd782714253..01b76543fa2 100644
--- a/llvm/lib/Object/ObjectFile.cpp
+++ b/llvm/lib/Object/ObjectFile.cpp
@@ -76,6 +76,7 @@ ObjectFile::createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type) {
case sys::fs::file_magic::macho_bundle:
case sys::fs::file_magic::macho_dynamically_linked_shared_lib_stub:
case sys::fs::file_magic::macho_dsym_companion:
+ case sys::fs::file_magic::macho_kext_bundle:
return createMachOObjectFile(Object);
case sys::fs::file_magic::coff_object:
case sys::fs::file_magic::coff_import_library:
OpenPOWER on IntegriCloud