Namespacify.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Sep 2011 00:35:06 +0000 (00:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Sep 2011 00:35:06 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139892 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveDebugVariables.cpp
lib/DebugInfo/DWARFDebugArangeSet.cpp

index c1f7e0e4e38de010f09464c2a6dfd4e7fc2c7caf..3dfe4c0e8cfad61900a7dabb5dcb7b20205017d9 100644 (file)
@@ -71,6 +71,7 @@ LiveDebugVariables::LiveDebugVariables() : MachineFunctionPass(ID), pImpl(0) {
 /// 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 @@ public:
     return false;
   }
 };
+} // end anonymous namespace
 
 /// UserValue - A user value is a part of a debug info user variable.
 ///
index 148b770bd84752105c05cc81493a6cc4a539d41f..b0c0354383b9c6614c4a377c7fda129dea0e7ca4 100644 (file)
@@ -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();