]> sourceware.org Git - libabigail.git/commitdiff
Adjust {s,g}et_show_stats() to use a reference
authorDodji Seketeli <dodji@redhat.com>
Mon, 7 Sep 2015 21:42:17 +0000 (23:42 +0200)
committerDodji Seketeli <dodji@redhat.com>
Mon, 7 Sep 2015 21:42:17 +0000 (23:42 +0200)
* include/abg-dwarf-reader.h ({s,g}et_show_stats): Use a reference
to the reader.
* tools/abidiff.cc (main): Adjust.
* tools/abidw.cc (main): Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
include/abg-dwarf-reader.h
tools/abidiff.cc
tools/abidw.cc

index c72dbf9d72df24e87dc9d1ac4c1deb9c355f7511..245ed98c702c3a5574d04f647dd2b31661888449 100644 (file)
@@ -139,10 +139,10 @@ get_debug_info_root_path(read_context& ctxt,
                         char**& path);
 
 bool
-get_show_stats(read_context_sptr& ctxt);
+get_show_stats(read_context& ctxt);
 
 void
-set_show_stats(read_context_sptr& ctxt,
+set_show_stats(read_context& ctxt,
               bool f);
 
 void
index 5b29f39cfd5d9df81be7d833851ec10e58de9e53..5aa8ff9e2b644b36e9523bfacbf17a2ae999d115 100644 (file)
@@ -554,7 +554,7 @@ main(int argc, char* argv[])
                                                         /*read_all_types=*/false);
            assert(ctxt);
            abigail::dwarf_reader::set_show_stats
-             (ctxt, opts.show_stats);
+             (*ctxt, opts.show_stats);
 
            c1 = abigail::dwarf_reader::read_corpus_from_elf(*ctxt, c1_status);
          }
@@ -597,7 +597,7 @@ main(int argc, char* argv[])
                                                         /*read_all_types=*/false);
            assert(ctxt);
            abigail::dwarf_reader::set_show_stats
-             (ctxt, opts.show_stats);
+             (*ctxt, opts.show_stats);
            c2 = abigail::dwarf_reader::read_corpus_from_elf(*ctxt, c2_status);
          }
          break;
index 871e0746dad99de1fa2dce1294508793bb4001a3..c81c7556e416e139d20187479f2d83f23b5e7bfc 100644 (file)
@@ -199,8 +199,8 @@ main(int argc, char* argv[])
   read_context_sptr c = create_read_context(opts.in_file_path,
                                            &p, env.get(),
                                            opts.load_all_types);
-  set_show_stats(c, opts.show_stats);
   read_context& ctxt = *c;
+  set_show_stats(ctxt, opts.show_stats);
 
   if (opts.check_alt_debug_info_path)
     {
This page took 0.041781 seconds and 5 git commands to generate.