aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/Path.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/unittests/Support/Path.cpp
parent2e427d4dbd4ca8cae143b4096d0f64eb503a555c (diff)
downloadllvm-a7ad4b3f3b841a95510ddaab2ee4e998d9ed0a2a.zip
llvm-a7ad4b3f3b841a95510ddaab2ee4e998d9ed0a2a.tar.gz
llvm-a7ad4b3f3b841a95510ddaab2ee4e998d9ed0a2a.tar.bz2
Object: Handle Mach-O kext bundle files
This particular subtype of Mach-O was missing. Add it. llvm-svn: 230567
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r--llvm/unittests/Support/Path.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index 0d661c8a..00af989 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -557,6 +557,7 @@ const char macho_dynamically_linked_shared_lib[] =
const char macho_dynamic_linker[] = "\xfe\xed\xfa\xce..........\x00\x07";
const char macho_bundle[] = "\xfe\xed\xfa\xce..........\x00\x08";
const char macho_dsym_companion[] = "\xfe\xed\xfa\xce..........\x00\x0a";
+const char macho_kext_bundle[] = "\xfe\xed\xfa\xce..........\x00\x0b";
const char windows_resource[] = "\x00\x00\x00\x00\x020\x00\x00\x00\xff";
const char macho_dynamically_linked_shared_lib_stub[] =
"\xfe\xed\xfa\xce..........\x00\x09";
@@ -587,6 +588,7 @@ TEST_F(FileSystemTest, Magic) {
DEFINE(macho_bundle),
DEFINE(macho_dynamically_linked_shared_lib_stub),
DEFINE(macho_dsym_companion),
+ DEFINE(macho_kext_bundle),
DEFINE(windows_resource)
#undef DEFINE
};