aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cgraph.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 9f31773..d1a773d 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -4098,6 +4098,21 @@ cgraph_node::check_calls_comdat_local_p ()
return false;
}
+/* Return true if this node represents a former, i.e. an expanded, thunk. */
+
+bool
+cgraph_node::former_thunk_p (void)
+{
+ if (thunk)
+ return false;
+ thunk_info *i = thunk_info::get (this);
+ if (!i)
+ return false;
+ gcc_checking_assert (i->fixed_offset || i->virtual_offset_p
+ || i->indirect_offset);
+ return true;
+}
+
/* A stashed copy of "symtab" for use by selftest::symbol_table_test.
This needs to be a global so that it can be a GC root, and thus
prevent the stashed copy from being garbage-collected if the GC runs
@@ -4162,21 +4177,6 @@ cgraph_c_tests ()
} // namespace selftest
-/* Return true if this node represents a former, i.e. an expanded, thunk. */
-
-bool
-cgraph_node::former_thunk_p (void)
-{
- if (thunk)
- return false;
- thunk_info *i = thunk_info::get (this);
- if (!i)
- return false;
- gcc_checking_assert (i->fixed_offset || i->virtual_offset_p
- || i->indirect_offset);
- return true;
-}
-
#endif /* CHECKING_P */
#include "gt-cgraph.h"