]> sourceware.org Git - libabigail.git/commitdiff
Add new methods in corpus_diff class
authorSinny Kumari <skumari@redhat.com>
Wed, 17 Dec 2014 11:56:26 +0000 (17:26 +0530)
committerDodji Seketeli <dodji@redhat.com>
Thu, 18 Dec 2014 14:27:39 +0000 (15:27 +0100)
Functions added_unrefed_function_symbols() and
added_unrefed_variable_symbols() are required in order to access
added functions and variables obtained while calculating abi diff
between libraries with no debug information available

* include/abg-comparison.h
(corpus_diff::added_unrefed_function_symbols):
Declare new member function
(corpus_diff::added_unrefed_variable_symbols):
Declare new member function
* src/abg-comparison.cc
(corpus_diff::added_unrefed_function_symbols):
Define new member function
(corpus_diff::added_unrefed_variable_symbols):
Define new member function

Signed-off-by: Sinny Kumari <skumari@redhat.com>
include/abg-comparison.h
src/abg-comparison.cc

index ec89cc62975f62002088e16cc1decb5f709c6480..6ed33cad7f6d12706265da23c3cea2aa6700ee44 100644 (file)
@@ -2056,9 +2056,15 @@ public:
   const string_elf_symbol_map&
   deleted_unrefed_function_symbols() const;
 
+  const string_elf_symbol_map&
+  added_unrefed_function_symbols() const;
+
   const string_elf_symbol_map&
   deleted_unrefed_variable_symbols() const;
 
+  const string_elf_symbol_map&
+  added_unrefed_variable_symbols() const;
+
   const diff_context_sptr
   context() const;
 
index fd7e3dd9af0de4da0d2e65303f22b666d2897950..665d12c634c7c395c238bde6a5b0c25281924c3d 100644 (file)
@@ -10225,6 +10225,15 @@ const string_elf_symbol_map&
 corpus_diff::deleted_unrefed_function_symbols() const
 {return priv_->deleted_unrefed_fn_syms_;}
 
+/// Getter for function symbols not referenced by any debug info and
+/// that got added.
+///
+/// @return a map of elf function symbols not referenced by any debug
+/// info and that got added.
+const string_elf_symbol_map&
+corpus_diff::added_unrefed_function_symbols() const
+{return priv_->added_unrefed_fn_syms_;}
+
 /// Getter for variable symbols not referenced by any debug info and
 /// that got deleted.
 ///
@@ -10234,6 +10243,15 @@ const string_elf_symbol_map&
 corpus_diff::deleted_unrefed_variable_symbols() const
 {return priv_->deleted_unrefed_var_syms_;}
 
+/// Getter for variable symbols not referenced by any debug info and
+/// that got added.
+///
+/// @return a map of elf variable symbols not referenced by any debug
+/// info and that got added.
+const string_elf_symbol_map&
+corpus_diff::added_unrefed_variable_symbols() const
+{return priv_->added_unrefed_var_syms_;}
+
 /// Getter of the diff context of this diff
 ///
 /// @return the diff context for this diff.
This page took 0.051217 seconds and 5 git commands to generate.