]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Put the --dump-offsets option to the right group
authorPetr Machata <pmachata@redhat.com>
Tue, 8 Mar 2011 18:20:03 +0000 (19:20 +0100)
committerPetr Machata <pmachata@redhat.com>
Tue, 8 Mar 2011 18:20:03 +0000 (19:20 +0100)
dwarflint/check_debug_info.cc

index 348dad0d27d136bcf44d998617e2ff3dd334ffcf..1ad33bcafcb73a66e748149697919eb49c864d31 100644 (file)
@@ -54,12 +54,17 @@ read_cu_headers::descriptor ()
   return &cd;
 }
 
+static void_option
+  dump_die_offsets ("Dump DIE offsets to stderr as the tree is iterated.",
+                   "dump-offsets");
+
 checkdescriptor const *
 check_debug_info::descriptor ()
 {
   static checkdescriptor cd
     (checkdescriptor::create ("check_debug_info")
      .groups ("@low")
+     .option (dump_die_offsets)
      .prereq<typeof (*_m_sec_info)> ()
      .prereq<typeof (*_m_sec_str)> ()
      .prereq<typeof (*_m_abbrevs)> ()
@@ -97,10 +102,6 @@ check_debug_info::descriptor ()
   return &cd;
 }
 
-static void_option
-  dump_die_offsets ("Dump DIE offsets to stderr as the tree is iterated.",
-                   "dump-offsets");
-
 namespace
 {
   bool
@@ -1171,7 +1172,6 @@ check_debug_info_refs::descriptor ()
   static checkdescriptor cd
     (checkdescriptor::create ("check_debug_info_refs")
      .groups ("@low")
-     .option (dump_die_offsets)
      .prereq<typeof (*_m_info)> ()
      .prereq<typeof (*_m_line)> ()
      .description (