diff options
author | Tim Northover <tnorthover@apple.com> | 2014-06-30 14:40:57 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-06-30 14:40:57 +0000 |
commit | 8f9590b6220a18d2d1056c2b4477be9555a89d12 (patch) | |
tree | cfad52ad874501749949009af7e18f104a247e28 /llvm/lib/Object | |
parent | 94a656477d739dd64ca375d070f9c87051b916ab (diff) | |
download | bcm5719-llvm-8f9590b6220a18d2d1056c2b4477be9555a89d12.tar.gz bcm5719-llvm-8f9590b6220a18d2d1056c2b4477be9555a89d12.zip |
macho-dump: add code to print LC_ID_DYLIB load commands.
I want to check them in lld.
llvm-svn: 212043
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<MachO::version_min_command>(this, L.Ptr); } +MachO::dylib_command +MachOObjectFile::getDylibIDLoadCommand(const LoadCommandInfo &L) const { + return getStruct<MachO::dylib_command>(this, L.Ptr); +} + + MachO::any_relocation_info MachOObjectFile::getRelocation(DataRefImpl Rel) const { DataRefImpl Sec; |