aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranil Dey <mkdeyp@gmail.com>2024-10-01 10:03:43 +0530
committerPranil Dey <mkdeyp@gmail.com>2024-10-01 10:03:43 +0530
commit97933e95963b2d91da147fb9e1639434f9a7a049 (patch)
tree16af6d55d742deefb44eef6523d13fb148b14a77
parent5f1a438ba69b855103cec32eecde60fd7e4415b0 (diff)
downloadgcc-97933e95963b2d91da147fb9e1639434f9a7a049.zip
gcc-97933e95963b2d91da147fb9e1639434f9a7a049.tar.gz
gcc-97933e95963b2d91da147fb9e1639434f9a7a049.tar.bz2
Reolved some conflicts
-rw-r--r--gcc/tree-eh.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/gcc/tree-eh.cc b/gcc/tree-eh.cc
index 89640c0..6ed705d 100644
--- a/gcc/tree-eh.cc
+++ b/gcc/tree-eh.cc
@@ -3131,42 +3131,6 @@ stmt_could_throw_1_p (gassign *stmt)
return false;
}
-void extract_exception_types_for_call (gcall *call_stmt, vec<tree> *ret_vector) {
- tree callee = gimple_call_fndecl (call_stmt);
- if (callee == NULL_TREE) {
- return;
- }
- if (strcmp (IDENTIFIER_POINTER (DECL_NAME (callee)), "__cxa_throw") == 0) {
- // Extracting exception type
- tree exception_type_info = gimple_call_arg (call_stmt, 1);
- if (exception_type_info && TREE_CODE (exception_type_info) == ADDR_EXPR) {
- exception_type_info = TREE_OPERAND (exception_type_info, 0);
- }
- if (exception_type_info && TREE_CODE (exception_type_info) == VAR_DECL) {
- // Converting the typeinfo to a compile-time type
- tree exception_type = TREE_TYPE (exception_type_info);
- if (exception_type) {
- ret_vector->safe_push (exception_type);
- }
- }
- }
-}
-
-// Determine which types can be thrown by a GIMPLE statement and convert them to compile-time types
-bool stmt_throw_types (function *fun, gimple *stmt, vec<tree> *ret_vector) {
- if (!flag_exceptions) {
- return false;
- }
-
- switch (gimple_code (stmt)) {
- case GIMPLE_CALL:
- extract_exception_types_for_call (as_a<gcall*> (stmt), ret_vector);
- return !ret_vector->is_empty ();
-
- default:
- return false;
- }
-}
void extract_types_for_call (gcall *call_stmt, vec<tree> *ret_vector) {
tree callee = gimple_call_fndecl (call_stmt);
if (callee == NULL_TREE) {