aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-12-19 19:48:16 +0000
committerKevin Enderby <enderby@apple.com>2014-12-19 19:48:16 +0000
commit36c8d3ae63c0026b2d36a420496ab9f9f9d966a4 (patch)
treea25b5e4eaa41e58fae04e538dcc7fc2bcebd3848 /llvm/lib/Object/MachOObjectFile.cpp
parent4aeb19893bab27da6ffc6f95a01c6a38d664dbd2 (diff)
downloadllvm-36c8d3ae63c0026b2d36a420496ab9f9f9d966a4.zip
llvm-36c8d3ae63c0026b2d36a420496ab9f9f9d966a4.tar.gz
llvm-36c8d3ae63c0026b2d36a420496ab9f9f9d966a4.tar.bz2
Add printing the LC_SUB_LIBRARY load command with llvm-objdump’s -private-headers.
llvm-svn: 224607
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 92981fe..f1348b9 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -2322,6 +2322,11 @@ MachOObjectFile::getSubUmbrellaCommand(const LoadCommandInfo &L) const {
return getStruct<MachO::sub_umbrella_command>(this, L.Ptr);
}
+MachO::sub_library_command
+MachOObjectFile::getSubLibraryCommand(const LoadCommandInfo &L) const {
+ return getStruct<MachO::sub_library_command>(this, L.Ptr);
+}
+
MachO::any_relocation_info
MachOObjectFile::getRelocation(DataRefImpl Rel) const {
DataRefImpl Sec;