aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-namespace.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-27 22:13:40 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commitf5abd8f234426bbe8ccd08c43e6ae7cbe635e042 (patch)
treee8a679b506617ed029ca5cb5bca710b9c33b11b5 /gdb/cp-namespace.c
parent32177d6e39a2ed82fdafd7c41456c311b64d09fc (diff)
downloadbinutils-f5abd8f234426bbe8ccd08c43e6ae7cbe635e042.zip
binutils-f5abd8f234426bbe8ccd08c43e6ae7cbe635e042.tar.gz
binutils-f5abd8f234426bbe8ccd08c43e6ae7cbe635e042.tar.bz2
gdb: remote SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION macro
Add a getter for a whether a symbol is a C++ template function. Remove the corresponding macro and adjust all callers. Change-Id: I89abc2802a952b77b0e0eb73a25c2306cb8e8bcc
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r--gdb/cp-namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c
index 6130381..8fb2f71 100644
--- a/gdb/cp-namespace.c
+++ b/gdb/cp-namespace.c
@@ -519,7 +519,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
if (function != NULL && function->language () == language_cplus)
{
/* Search the function's template parameters. */
- if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
+ if (function->is_cplus_template_function ())
{
struct template_symbol *templ
= (struct template_symbol *) function;