diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-11-25 21:00:47 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-11-25 20:00:47 +0000 |
commit | ed7dc894d7a38a763bc88608135d047ddb650032 (patch) | |
tree | 458ee9ffb9bb3ad9069cde9a08ca71c1b3a9d60d /gcc/langhooks.c | |
parent | 72ad6d333902d1ac6a2c17b223508aea2b8a7e85 (diff) | |
download | gcc-ed7dc894d7a38a763bc88608135d047ddb650032.zip gcc-ed7dc894d7a38a763bc88608135d047ddb650032.tar.gz gcc-ed7dc894d7a38a763bc88608135d047ddb650032.tar.bz2 |
timevar.def (TV_IPA_LTO_DECOMPRESS, [...]): New.
* timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
TV_IPA_LTO_OUTPUT): New.
* lto-compress.c: Include timevar.h
(lto_end_compression, lto_end_uncompression): Add timers.
* langhooks.c: Include timevar.h
(lhd_append_data): Add timer.
From-SVN: r230902
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index e7d9ae1..9d4f331 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see #include "langhooks.h" #include "tree-diagnostic.h" #include "output.h" +#include "timevar.h" /* Do nothing; in many cases the default hook. */ @@ -658,7 +659,11 @@ void lhd_append_data (const void *data, size_t len, void *) { if (data) - assemble_string ((const char *)data, len); + { + timevar_push (TV_IPA_LTO_OUTPUT); + assemble_string ((const char *)data, len); + timevar_pop (TV_IPA_LTO_OUTPUT); + } } |