summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Dwarf.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-19 21:30:00 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-19 21:30:00 +0000
commit03fadd7f14c94620a5135968de155505b1bb7c4f (patch)
tree4f215f97d3f18379b789c21a380df838f5341eaa /include/llvm/Support/Dwarf.h
parentb1ccfb3a548e122e282cd62c534c4d47f5310bf6 (diff)
downloadllvm-03fadd7f14c94620a5135968de155505b1bb7c4f.tar.gz
llvm-03fadd7f14c94620a5135968de155505b1bb7c4f.tar.bz2
llvm-03fadd7f14c94620a5135968de155505b1bb7c4f.tar.xz
Unbreak C++03 build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Dwarf.h')
-rw-r--r--include/llvm/Support/Dwarf.h10
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