aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_util.adb')
-rw-r--r--gcc/ada/sem_util.adb10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index d0e0fcd..9967bd2 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -17640,6 +17640,16 @@ package body Sem_Util is
return False;
end Is_Inlinable_Expression_Function;
+ -----------------------
+ -- Is_Internal_Block --
+ -----------------------
+
+ function Is_Internal_Block (N : Node_Id) return Boolean is
+ begin
+ return Nkind (N) = N_Block_Statement
+ and then Is_Internal (Entity (Identifier (N)));
+ end Is_Internal_Block;
+
-----------------
-- Is_Iterator --
-----------------