]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
public/private fixups
authorRoland McGrath <roland@redhat.com>
Sun, 11 Jan 2009 06:03:56 +0000 (22:03 -0800)
committerRoland McGrath <roland@redhat.com>
Sun, 11 Jan 2009 06:03:56 +0000 (22:03 -0800)
libdw/c++/dwarf

index bd1b78914a403770b0eaa0c4048ff8c89baa290e..1f5dcd9f9448aad6d931d46257fad938c183b1f1 100644 (file)
@@ -204,12 +204,12 @@ namespace elfutils
 
       raw _m_raw;
 
-    public:
+    protected:
       inline skipping_wrapper (const raw &raw) : _m_raw (raw) {}
 
+    public:
       inline skipping_wrapper (const skipping_wrapper &w) : _m_raw (w._m_raw) {}
 
-    public:
       /*
        iterator: wraps raw iterator, skips DW_AT_sibling
        size/empty: search for DW_AT_sibling, adjust raw size
@@ -400,7 +400,6 @@ namespace elfutils
        }
 
       public:
-
        inline const_iterator (const const_iterator &i) : _m_die (i._m_die) {}
 
        inline const debug_info_entry &operator* () const
@@ -1201,14 +1200,19 @@ namespace elfutils
     private:
       inline compile_unit () : debug_info_entry (::DW_TAG_compile_unit) {}
 
-    public:
       // XXX should be private
+    public:
       template<typename die>
       compile_unit (const die &die) : debug_info_entry (die)
       {
        if (die.tag () != ::DW_TAG_compile_unit)
          throw std::invalid_argument ("not a compile_unit entry");
       }
+
+      /* XXX doesn't help
+       public:
+       compile_unit (const compile_unit &u) : debug_info_entry (u) {}
+      */
     };
 
     // Main container anchoring all the output.