Revert "[Core] Update ContentPermissions"

This reverts commit r228381.

The MachO writer uses the permissions as bit masks.

llvm-svn: 228401
This commit is contained in:
Shankar Easwaran 2015-02-06 14:55:40 +00:00
parent 0b9234baef
commit 6aa03e230c
1 changed files with 8 additions and 8 deletions

View File

@ -157,14 +157,14 @@ public:
// important, because the layout pass may sort atoms by permission if other // important, because the layout pass may sort atoms by permission if other
// attributes are the same. // attributes are the same.
enum ContentPermissions { enum ContentPermissions {
perm___, // mapped as unaccessible perm___ = 0, // mapped as unaccessible
permR__, // mapped read-only permR__ = 8, // mapped read-only
permRW_, // mapped readable and writable permRW_ = 8 + 2, // mapped readable and writable
permRW_L, // initially mapped r/w, then made read-only permRW_L = 8 + 2 + 1, // initially mapped r/w, then made read-only
// loader writable // loader writable
permR_X, // mapped readable and executable permR_X = 8 + 4, // mapped readable and executable
permRWX, // mapped readable and writable and executable permRWX = 8 + 2 + 4, // mapped readable and writable and executable
permUnknown // unknown or invalid permissions permUnknown = 16 // unknown or invalid permissions
}; };
enum SectionChoice { enum SectionChoice {