Add printing the LC_ENCRYPTION_INFO load command with llvm-objdump’s -private-headers.
[oota-llvm.git] / include / llvm / Support / MachO.h
index 20202bee26a5f03e400615fbd238965e636b8c81..00f2bd92aa473d34ce3092f56e8651e5c96c8a11 100644 (file)
@@ -1128,6 +1128,14 @@ namespace llvm {
       sys::swapByteOrder(e.stacksize);
     }
 
+    inline void swapStruct(encryption_info_command &e) {
+      sys::swapByteOrder(e.cmd);
+      sys::swapByteOrder(e.cmdsize);
+      sys::swapByteOrder(e.cryptoff);
+      sys::swapByteOrder(e.cryptsize);
+      sys::swapByteOrder(e.cryptid);
+    }
+
     inline void swapStruct(dysymtab_command &dst) {
       sys::swapByteOrder(dst.cmd);
       sys::swapByteOrder(dst.cmdsize);