From 76f58d20313a23758399a59ceec0fbc6c2c16397 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 16 Sep 2011 00:35:06 +0000 Subject: Namespacify. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139892 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LiveDebugVariables.cpp | 2 ++ lib/DebugInfo/DWARFDebugArangeSet.cpp | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp index c1f7e0e4e3..3dfe4c0e8c 100644 --- a/lib/CodeGen/LiveDebugVariables.cpp +++ b/lib/CodeGen/LiveDebugVariables.cpp @@ -71,6 +71,7 @@ LiveDebugVariables::LiveDebugVariables() : MachineFunctionPass(ID), pImpl(0) { /// LocMap - Map of where a user value is live, and its location. typedef IntervalMap LocMap; +namespace { /// UserValueScopes - Keeps track of lexical scopes associated with an /// user value's source location. class UserValueScopes { @@ -91,6 +92,7 @@ public: return false; } }; +} // end anonymous namespace /// UserValue - A user value is a part of a debug info user variable. /// 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(); -- cgit v1.2.3