diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-16 00:35:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-16 00:35:06 +0000 |
commit | 67b014b2c20f240df3231d313c84be2c5c2d40da (patch) | |
tree | 023340b831759d45cc399606ffe60c42fd771967 /llvm/lib/DebugInfo | |
parent | 88b4ddfa91eca9512ce3d289e9471d3f02677ad3 (diff) | |
download | bcm5719-llvm-67b014b2c20f240df3231d313c84be2c5c2d40da.tar.gz bcm5719-llvm-67b014b2c20f240df3231d313c84be2c5c2d40da.zip |
Namespacify.
llvm-svn: 139892
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp b/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp index 148b770bd84..b0c0354383b 100644 --- a/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp +++ b/llvm/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(); |