aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2021-07-19 10:23:27 -0700
committerIndu Bhagat <indu.bhagat@oracle.com>2021-07-19 10:34:22 -0700
commit483dd64546f1c7aa6ad8986eee570849d25f15e3 (patch)
tree0d4fecf49ce21b9d596f45310a943d278d3504af /gcc/opts.c
parentaad32a00b7d2b64ae158b2b167768a9ae3e20f6e (diff)
downloadgcc-483dd64546f1c7aa6ad8986eee570849d25f15e3.zip
gcc-483dd64546f1c7aa6ad8986eee570849d25f15e3.tar.gz
gcc-483dd64546f1c7aa6ad8986eee570849d25f15e3.tar.bz2
debug: Add new function ctf_debuginfo_p
gcc/ * flags.h (ctf_debuginfo_p): New function declaration. * opts.c (ctf_debuginfo_p): New function definition.
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 25282f7..93366e6 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -135,6 +135,14 @@ btf_debuginfo_p ()
return (write_symbols & BTF_DEBUG);
}
+/* Return TRUE iff CTF debug info is enabled. */
+
+bool
+ctf_debuginfo_p ()
+{
+ return (write_symbols & CTF_DEBUG);
+}
+
/* Return TRUE iff dwarf2 debug info is enabled. */
bool