[11/11] abidw: Make generic options like --verbose work with the ABIXML front-end

Message ID 20240814125649.47119-11-dodji@redhat.com
State New
Headers
Series [01/11] Use smart pointers for variables exported from the ABI corpus |

Commit Message

Dodji Seketeli Aug. 14, 2024, 12:56 p.m. UTC
  From: Dodji Seketeli <dodji@redhat.com>

	* tools/abidw.cc (set_generic_options): Take a fe_iface in
	parameter, not an elf_based_reader.
	(perform_self_comparison): Call set_generic_options.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 tools/abidw.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Patch

diff --git a/tools/abidw.cc b/tools/abidw.cc
index 6bb1ef55..b7642747 100644
--- a/tools/abidw.cc
+++ b/tools/abidw.cc
@@ -612,7 +612,7 @@  set_suppressions(abigail::elf_based_reader& rdr, options& opts)
 ///
 /// @param opts the command line options.
 static void
-set_generic_options(abigail::elf_based_reader& rdr, options& opts)
+set_generic_options(abigail::fe_iface& rdr, options& opts)
 {
   rdr.options().drop_undefined_syms = opts.drop_undefined_syms;
   rdr.options().show_stats = opts.show_stats;
@@ -675,6 +675,7 @@  perform_self_comparison(const write_context_sptr& write_ctxt,
     }
 #endif
   fe_iface_sptr rdr = abixml::create_reader(tmp_file->get_path(), env);
+  set_generic_options(*rdr, opts);
 
 #ifdef WITH_DEBUG_SELF_COMPARISON
   if (opts.debug_abidiff