]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
We relied on the *info () hack in dwarf_output, so put it back for now.
authorMark Wielaard <mjw@redhat.com>
Wed, 23 Feb 2011 18:59:41 +0000 (19:59 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 23 Feb 2011 18:59:41 +0000 (19:59 +0100)
libdw/c++/dwarf_output

index 119221c124e8b40972dad16abaf18112f69ea8e1..e792a929e29b4d4238af931de1c6d12cf4b57149 100644 (file)
@@ -151,6 +151,12 @@ namespace elfutils
       friend class dwarf_output;
       friend class dwarf_output_collector;
 
+      __attribute__((used)) die_info_pair *info () const
+      {
+       return reinterpret_cast<die_info_pair *>
+         (const_cast<debug_info_entry *> (this));
+      }
+
     public:
       class attributes_type
        : public dwarf_data::attributes_type<dwarf_output, value>