diff options
-rw-r--r-- | include/llvm/Support/Dwarf.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index 9f969728cf..20c2200a71 100644 --- a/include/llvm/Support/Dwarf.h +++ b/include/llvm/Support/Dwarf.h @@ -829,10 +829,12 @@ struct PubIndexEntryDescriptor { return Kind << KIND_OFFSET | Static << STATIC_OFFSET; } private: - const uint8_t KIND_OFFSET = 4; - const uint8_t KIND_MASK = 7 << KIND_OFFSET; - const uint8_t STATIC_OFFSET = 7; - const uint8_t STATIC_MASK = 1 << STATIC_OFFSET; + enum { + KIND_OFFSET = 4, + KIND_MASK = 7 << KIND_OFFSET, + STATIC_OFFSET = 7, + STATIC_MASK = 1 << STATIC_OFFSET + }; }; } // End of namespace dwarf |