summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2013-09-04 23:53:44 +0000
committerNick Kledzik <kledzik@apple.com>2013-09-04 23:53:44 +0000
commita38c27be0ff5dd35fcd20cfce827f9dbdb24d1ea (patch)
tree8aa56c9bbf7d06fa661ab00768c0d7cda5995540 /include
parent5afaf5d1c1879d5cfbb3230dcb56297bd886bda4 (diff)
downloadllvm-a38c27be0ff5dd35fcd20cfce827f9dbdb24d1ea.tar.gz
llvm-a38c27be0ff5dd35fcd20cfce827f9dbdb24d1ea.tar.bz2
llvm-a38c27be0ff5dd35fcd20cfce827f9dbdb24d1ea.tar.xz
Add names for mach-o permissions bits and use the symbol names in place of magic numbers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/MachO.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Support/MachO.h b/include/llvm/Support/MachO.h
index 9d401c8d36..59998ada02 100644
--- a/include/llvm/Support/MachO.h
+++ b/include/llvm/Support/MachO.h
@@ -417,6 +417,15 @@ namespace llvm {
X86_64_RELOC_TLV = 9
};
+ // Values for segment_command.initprot.
+ // From <mach/vm_prot.h>
+ enum {
+ VM_PROT_READ = 0x1,
+ VM_PROT_WRITE = 0x2,
+ VM_PROT_EXECUTE = 0x4
+ };
+
+
// Structs from <mach-o/loader.h>
struct mach_header {