summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugArangeSet.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-16 00:35:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-16 00:35:06 +0000
commit76f58d20313a23758399a59ceec0fbc6c2c16397 (patch)
tree7082aa24f811f13c61a909b4492bb50d346eb1d5 /lib/DebugInfo/DWARFDebugArangeSet.cpp
parente74711b8b0c7abd0383ebb70941cdcb779918e12 (diff)
downloadllvm-76f58d20313a23758399a59ceec0fbc6c2c16397.tar.gz
llvm-76f58d20313a23758399a59ceec0fbc6c2c16397.tar.bz2
llvm-76f58d20313a23758399a59ceec0fbc6c2c16397.tar.xz
Namespacify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139892 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugArangeSet.cpp')
-rw-r--r--lib/DebugInfo/DWARFDebugArangeSet.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/DebugInfo/DWARFDebugArangeSet.cpp b/lib/DebugInfo/DWARFDebugArangeSet.cpp
index 148b770bd8..b0c0354383 100644
--- a/lib/DebugInfo/DWARFDebugArangeSet.cpp
+++ b/lib/DebugInfo/DWARFDebugArangeSet.cpp
@@ -127,14 +127,16 @@ void DWARFDebugArangeSet::dump(raw_ostream &OS) const {
}
-class DescriptorContainsAddress {
- const uint64_t Address;
-public:
- DescriptorContainsAddress(uint64_t address) : Address(address) {}
- bool operator()(const DWARFDebugArangeSet::Descriptor &desc) const {
- return Address >= desc.Address && Address < (desc.Address + desc.Length);
- }
-};
+namespace {
+ class DescriptorContainsAddress {
+ const uint64_t Address;
+ public:
+ DescriptorContainsAddress(uint64_t address) : Address(address) {}
+ bool operator()(const DWARFDebugArangeSet::Descriptor &desc) const {
+ return Address >= desc.Address && Address < (desc.Address + desc.Length);
+ }
+ };
+}
uint32_t DWARFDebugArangeSet::findAddress(uint64_t address) const {
DescriptorConstIter end = ArangeDescriptors.end();