aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorHrishikesh Kulkarni <hrishikeshparag@gmail.com>2019-05-06 07:23:25 +0000
committerMartin Liska <marxin@gcc.gnu.org>2019-05-06 07:23:25 +0000
commit66d62d9f2e6b059be6a018397fba555147133a9a (patch)
treefab164b40d0f06c1e3b883ed151202724aa28fd7 /gcc/cgraph.h
parenta79420f995764129dc40d1abcbf8ce75a0b0f906 (diff)
downloadgcc-66d62d9f2e6b059be6a018397fba555147133a9a.zip
gcc-66d62d9f2e6b059be6a018397fba555147133a9a.tar.gz
gcc-66d62d9f2e6b059be6a018397fba555147133a9a.tar.bz2
Add lto-dump tool.
2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com> Martin Liska <mliska@suse.cz> * Makefile.in: Add lto-dump.texi. * cgraph.h: Add new functions get_visibility_string and get_symtab_type_string. * doc/gcc.texi: Include lto-dump section. * doc/lto-dump.texi: New file. * dumpfile.c (dump_switch_p_1): Use parse_dump_option. (parse_dump_option): Factor out this function. * dumpfile.h (enum dump_flag): Add new value TDF_ERROR. (parse_dump_option): Export the function. * symtab.c (symtab_node::get_visibility_string): New function. (symtab_node::get_symtab_type_string): Likewise. 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com> Martin Liska <mliska@suse.cz> * Make-lang.in: Add lto_dump-related definition. * config-lang.in: Likewise. * lang.opt: Add new language LTODump and options related to LTO dump tool. * lto-common.c (lto_read_decls): Support type statistics dump. (lto_file_read): Likewise for object files. * lto-dump.c: New file. * lto-lang.c (lto_option_lang_mask): Move from .. * lto.c (lto_option_lang_mask): .. here. * lto.h (lto_option_lang_mask): New declaration. Co-Authored-By: Martin Liska <mliska@suse.cz> From-SVN: r270897
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 9a19d83..18839a4 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -119,6 +119,12 @@ public:
/* Return dump name with assembler name. */
const char *dump_asm_name () const;
+ /* Return visibility name. */
+ const char *get_visibility_string () const;
+
+ /* Return type_name name. */
+ const char *get_symtab_type_string () const;
+
/* Add node into symbol table. This function is not used directly, but via
cgraph/varpool node creation routines. */
void register_symbol (void);