]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
debug: Add new function ctf_debuginfo_p
authorIndu Bhagat <indu.bhagat@oracle.com>
Mon, 19 Jul 2021 17:23:27 +0000 (10:23 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 19 Jul 2021 17:34:22 +0000 (10:34 -0700)
gcc/

* flags.h (ctf_debuginfo_p): New function declaration.
* opts.c (ctf_debuginfo_p): New function definition.

gcc/flags.h
gcc/opts.c

index 85fd228a20ca89fdc57474e318757eccb2be5630..afedef0abeacb231ef7ed16c2fa34a5a49013545 100644 (file)
@@ -44,6 +44,10 @@ const char * debug_set_names (uint32_t w_symbols);
 
 extern bool btf_debuginfo_p ();
 
+/* Return true iff CTF debug info is enabled.  */
+
+extern bool ctf_debuginfo_p ();
+
 /* Return true iff DWARF2 debug info is enabled.  */
 
 extern bool dwarf_debuginfo_p ();
index 25282f71a3b7dd87bc6c02ce7c29a3bea0f16b30..93366e6eb2db256ca745c4843b50defebf0f08be 100644 (file)
@@ -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