summaryrefslogtreecommitdiff
path: root/lib/Object
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-22 03:50:50 +0000
committerEric Christopher <echristo@apple.com>2011-04-22 03:50:50 +0000
commitea7e13eded163bcae97a976847df91b7a0da2b01 (patch)
treea44474db2d4047ca5395e2083c219d4aab538ddd /lib/Object
parentf0c3af637ae4d8b827909aa5b3d618eea9ef8cd6 (diff)
downloadllvm-ea7e13eded163bcae97a976847df91b7a0da2b01.tar.gz
llvm-ea7e13eded163bcae97a976847df91b7a0da2b01.tar.bz2
llvm-ea7e13eded163bcae97a976847df91b7a0da2b01.tar.xz
Hook in mach-o object files into Object interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/ObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/ObjectFile.cpp b/lib/Object/ObjectFile.cpp
index 161ae3a083..47b63115a9 100644
--- a/lib/Object/ObjectFile.cpp
+++ b/lib/Object/ObjectFile.cpp
@@ -55,7 +55,7 @@ ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) {
case sys::Mach_O_DynamicLinker_FileType:
case sys::Mach_O_Bundle_FileType:
case sys::Mach_O_DynamicallyLinkedSharedLibStub_FileType:
- return 0;
+ return createMachOObjectFile(Object);
case sys::COFF_FileType:
return createCOFFObjectFile(Object);
default: