Namespacify.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2011-09-16 00:35:06 +00:00
parent e74711b8b0
commit 76f58d2031
2 changed files with 12 additions and 8 deletions

View File

@ -71,6 +71,7 @@ LiveDebugVariables::LiveDebugVariables() : MachineFunctionPass(ID), pImpl(0) {
/// LocMap - Map of where a user value is live, and its location. /// LocMap - Map of where a user value is live, and its location.
typedef IntervalMap<SlotIndex, unsigned, 4> LocMap; typedef IntervalMap<SlotIndex, unsigned, 4> LocMap;
namespace {
/// UserValueScopes - Keeps track of lexical scopes associated with an /// UserValueScopes - Keeps track of lexical scopes associated with an
/// user value's source location. /// user value's source location.
class UserValueScopes { class UserValueScopes {
@ -91,6 +92,7 @@ public:
return false; return false;
} }
}; };
} // end anonymous namespace
/// UserValue - A user value is a part of a debug info user variable. /// UserValue - A user value is a part of a debug info user variable.
/// ///

View File

@ -127,14 +127,16 @@ void DWARFDebugArangeSet::dump(raw_ostream &OS) const {
} }
class DescriptorContainsAddress { namespace {
const uint64_t Address; class DescriptorContainsAddress {
public: const uint64_t Address;
DescriptorContainsAddress(uint64_t address) : Address(address) {} public:
bool operator()(const DWARFDebugArangeSet::Descriptor &desc) const { DescriptorContainsAddress(uint64_t address) : Address(address) {}
return Address >= desc.Address && Address < (desc.Address + desc.Length); bool operator()(const DWARFDebugArangeSet::Descriptor &desc) const {
} return Address >= desc.Address && Address < (desc.Address + desc.Length);
}; }
};
}
uint32_t DWARFDebugArangeSet::findAddress(uint64_t address) const { uint32_t DWARFDebugArangeSet::findAddress(uint64_t address) const {
DescriptorConstIter end = ArangeDescriptors.end(); DescriptorConstIter end = ArangeDescriptors.end();