summaryrefslogtreecommitdiff
path: root/lib/Support/PathV2.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-06-18 15:03:28 +0000
committerAlexey Samsonov <samsonov@google.com>2013-06-18 15:03:28 +0000
commit9c22f87b1374b06dc6c07f6e8047890e390bbe2d (patch)
tree4b4111e1ecfdffcfc137e357afdb764d72ea3696 /lib/Support/PathV2.cpp
parent79ac9c8402d4113d42ff2d713c7acdfa800d2397 (diff)
downloadllvm-9c22f87b1374b06dc6c07f6e8047890e390bbe2d.tar.gz
llvm-9c22f87b1374b06dc6c07f6e8047890e390bbe2d.tar.bz2
llvm-9c22f87b1374b06dc6c07f6e8047890e390bbe2d.tar.xz
Basic support for parsing Mach-O universal binaries in LLVMObject library
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r--lib/Support/PathV2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp
index 24eac47eca..0536620255 100644
--- a/lib/Support/PathV2.cpp
+++ b/lib/Support/PathV2.cpp
@@ -810,8 +810,7 @@ error_code has_magic(const Twine &path, const Twine &magic, bool &result) {
// This is complicated by an overlap with Java class files.
// See the Mach-O section in /usr/share/file/magic for details.
if (Magic.size() >= 8 && Magic[7] < 43)
- // FIXME: Universal Binary of any type.
- return file_magic::macho_dynamically_linked_shared_lib;
+ return file_magic::macho_universal_binary;
}
break;