[llvm-commits] [llvm] r139892 - in /llvm/trunk/lib: CodeGen/LiveDebugVariables.cpp DebugInfo/DWARFDebugArangeSet.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Sep 15 17:35:06 PDT 2011
Author: d0k
Date: Thu Sep 15 19:35:06 2011
New Revision: 139892
URL: http://llvm.org/viewvc/llvm-project?rev=139892&view=rev
Log:
Namespacify.
Modified:
llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
llvm/trunk/lib/DebugInfo/DWARFDebugArangeSet.cpp
Modified: llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp?rev=139892&r1=139891&r2=139892&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp Thu Sep 15 19:35:06 2011
@@ -71,6 +71,7 @@
/// LocMap - Map of where a user value is live, and its location.
typedef IntervalMap<SlotIndex, unsigned, 4> LocMap;
+namespace {
/// UserValueScopes - Keeps track of lexical scopes associated with an
/// user value's source location.
class UserValueScopes {
@@ -91,6 +92,7 @@
return false;
}
};
+} // end anonymous namespace
/// UserValue - A user value is a part of a debug info user variable.
///
Modified: llvm/trunk/lib/DebugInfo/DWARFDebugArangeSet.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugArangeSet.cpp?rev=139892&r1=139891&r2=139892&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFDebugArangeSet.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFDebugArangeSet.cpp Thu Sep 15 19:35:06 2011
@@ -127,14 +127,16 @@
}
-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();
More information about the llvm-commits
mailing list