diff options
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r-- | gcc/toplev.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index 1b54578..b845843 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -24,7 +24,24 @@ along with GCC; see the file COPYING3. If not see extern struct cl_decoded_option *save_decoded_options; extern unsigned int save_decoded_options_count; -extern int toplev_main (int, char **); +/* Invoking the compiler. */ +class toplev +{ +public: + toplev (bool use_TV_TOTAL); + ~toplev (); + + int main (int argc, char **argv); + + void finalize (); + +private: + + void start_timevars (); + + bool m_use_TV_TOTAL; +}; + extern void rest_of_decl_compilation (tree, int, int); extern void rest_of_type_compilation (tree, int); extern void init_optimization_passes (void); |