summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf-gimple.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-icf-gimple.h')
-rw-r--r--gcc/ipa-icf-gimple.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ipa-icf-gimple.h b/gcc/ipa-icf-gimple.h
index a52f8c33c9a..53a1bfe3c14 100644
--- a/gcc/ipa-icf-gimple.h
+++ b/gcc/ipa-icf-gimple.h
@@ -226,12 +226,16 @@ public:
/* Verifies that trees T1 and T2 do correspond. */
bool compare_variable_decl (tree t1, tree t2);
+ /* Return true if types are compatible for polymorphic call analysis.
+ COMPARE_PTR indicates if polymorphic type comparsion should be
+ done for pointers, too. */
+ static bool compatible_polymorphic_types_p (tree t1, tree t2,
+ bool compare_ptr);
+
/* Return true if types are compatible from perspective of ICF.
FIRST_ARGUMENT indicates if the comparison is called for
first parameter of a function. */
- static bool compatible_types_p (tree t1, tree t2,
- bool compare_polymorphic = true,
- bool first_argument = false);
+ static bool compatible_types_p (tree t1, tree t2);
private: