diff options
author | Kevin Enderby <enderby@apple.com> | 2014-12-19 22:25:22 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2014-12-19 22:25:22 +0000 |
commit | 52e4ce4a536705e8776c6026ae5bfca5d480ad55 (patch) | |
tree | 346e57097c0e381c0ea1f26ff05efbd29ff8e40b /llvm/lib/Object | |
parent | 5459af15f9eaab5e7f28a74a45c811fbcd4e8e60 (diff) | |
download | bcm5719-llvm-52e4ce4a536705e8776c6026ae5bfca5d480ad55.tar.gz bcm5719-llvm-52e4ce4a536705e8776c6026ae5bfca5d480ad55.zip |
Add printing the LC_ROUTINES load commands with llvm-objdump’s -private-headers.
llvm-svn: 224627
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index b03c360d44c..45439482ca2 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -2332,6 +2332,16 @@ MachOObjectFile::getSubClientCommand(const LoadCommandInfo &L) const { return getStruct<MachO::sub_client_command>(this, L.Ptr); } +MachO::routines_command +MachOObjectFile::getRoutinesCommand(const LoadCommandInfo &L) const { + return getStruct<MachO::routines_command>(this, L.Ptr); +} + +MachO::routines_command_64 +MachOObjectFile::getRoutinesCommand64(const LoadCommandInfo &L) const { + return getStruct<MachO::routines_command_64>(this, L.Ptr); +} + MachO::any_relocation_info MachOObjectFile::getRelocation(DataRefImpl Rel) const { DataRefImpl Sec; |