aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2014-12-16 23:25:52 +0000
committerKevin Enderby <enderby@apple.com>2014-12-16 23:25:52 +0000
commit0804f467f290ee479ec4ebf4b675880e46b9dfae (patch)
tree5281f661786613c2f09804f943a9248fecfd01d2 /llvm/lib/Object/MachOObjectFile.cpp
parent875902689353d92ee3ff49fccb3412b2656176c7 (diff)
downloadllvm-0804f467f290ee479ec4ebf4b675880e46b9dfae.zip
llvm-0804f467f290ee479ec4ebf4b675880e46b9dfae.tar.gz
llvm-0804f467f290ee479ec4ebf4b675880e46b9dfae.tar.bz2
Add printing the LC_ENCRYPTION_INFO load command with llvm-objdump’s -private-headers.
llvm-svn: 224390
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 0c5b1809..86b640f 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -2299,6 +2299,11 @@ MachOObjectFile::getEntryPointCommand(const LoadCommandInfo &L) const {
return getStruct<MachO::entry_point_command>(this, L.Ptr);
}
+MachO::encryption_info_command
+MachOObjectFile::getEncryptionInfoCommand(const LoadCommandInfo &L) const {
+ return getStruct<MachO::encryption_info_command>(this, L.Ptr);
+}
+
MachO::any_relocation_info
MachOObjectFile::getRelocation(DataRefImpl Rel) const {