]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Drop crud
authorPetr Machata <pmachata@redhat.com>
Mon, 6 Sep 2010 15:46:26 +0000 (17:46 +0200)
committerPetr Machata <pmachata@redhat.com>
Mon, 6 Sep 2010 15:46:26 +0000 (17:46 +0200)
dwarflint/check_debug_line.cc

index 92d5a427f7ba07a3a06082c6a05661ecfbb6c23b..11a93637b78257798f21bb8ccf5736b1f8e85b84 100644 (file)
@@ -152,8 +152,6 @@ check_debug_line::check_debug_line (checkstack &stack, dwarflint &lint)
   : _m_sec (lint.check (stack, _m_sec))
   , _m_info (lint.toplev_check (stack, _m_info))
 {
-  check_debug_info *cus = lint.toplev_check<check_debug_info> (stack);
-
   addr_record line_tables;
   WIPE (line_tables);
 
@@ -342,11 +340,11 @@ check_debug_line::check_debug_line (checkstack &stack, dwarflint &lint)
         references.  We don't include filenames defined through
         DW_LNE_define_file in consideration.  */
 
-      if (cus != NULL)
+      if (_m_info != NULL)
        {
          bool found = false;
-         for (std::vector<cu>::const_iterator it = cus->cus.begin ();
-              it != cus->cus.end (); ++it)
+         for (std::vector<cu>::const_iterator it = _m_info->cus.begin ();
+              it != _m_info->cus.end (); ++it)
            if (it->stmt_list.addr == set_offset)
              {
                found = true;
@@ -592,7 +590,7 @@ check_debug_line::check_debug_line (checkstack &stack, dwarflint &lint)
            << " `" << include_directories[i].name
            << "' is not used." << std::endl;
 
-      if (cus != NULL)
+      if (_m_info != NULL)
        // We can't do full analysis unless we know which DIEs refer
        // to files.
        for (size_t i = 0; i < files.size (); ++i)