Handle ELF mergeable sections

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53306 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2008-07-09 13:23:37 +00:00
parent 4260ad3e7d
commit 01b0e24c25
3 changed files with 73 additions and 7 deletions

View File

@@ -57,12 +57,12 @@ namespace llvm {
EntitySize = 0xFF << 24 ///< Entity size for mergeable sections
};
static inline unsigned getEntitySize(unsigned flags) {
return (flags >> 24) & 0xFF;
static inline unsigned getEntitySize(unsigned Flags) {
return (Flags >> 24) & 0xFF;
}
static inline unsigned setEntitySize(unsigned flags, unsigned size) {
return ((flags & ~EntitySize) | ((size & 0xFF) << 24));
static inline unsigned setEntitySize(unsigned Flags, unsigned Size) {
return ((Flags & ~EntitySize) | ((Size & 0xFF) << 24));
}
}