From 8f9590b6220a18d2d1056c2b4477be9555a89d12 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Mon, 30 Jun 2014 14:40:57 +0000 Subject: macho-dump: add code to print LC_ID_DYLIB load commands. I want to check them in lld. llvm-svn: 212043 --- llvm/lib/Object/MachOObjectFile.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/Object') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index dbfc07270a6..5abd10068fa 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -1721,6 +1721,12 @@ MachOObjectFile::getVersionMinLoadCommand(const LoadCommandInfo &L) const { return getStruct(this, L.Ptr); } +MachO::dylib_command +MachOObjectFile::getDylibIDLoadCommand(const LoadCommandInfo &L) const { + return getStruct(this, L.Ptr); +} + + MachO::any_relocation_info MachOObjectFile::getRelocation(DataRefImpl Rel) const { DataRefImpl Sec; -- cgit v1.2.3