From 03fadd7f14c94620a5135968de155505b1bb7c4f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 19 Sep 2013 21:30:00 +0000 Subject: [PATCH] Unbreak C++03 build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191039 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Dwarf.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/llvm/Support/Dwarf.h b/include/llvm/Support/Dwarf.h index 9f969728cfe..20c2200a714 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