diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-10-12 16:45:17 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-10-12 16:45:17 +0000 |
commit | f7d2609f04de254676f8ea35d0dae996ab8e892e (patch) | |
tree | 38d640501f4b57d1d33bf4dfc9f028194638209e /cachegrind/cg_main.c | |
parent | a3a29a5a828aff527539c5a504f0c82a333f30f4 (diff) |
Tiny comment/code layout tweaks; no functional change.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4913 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'cachegrind/cg_main.c')
-rw-r--r-- | cachegrind/cg_main.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index 13f7cc3b..da3bd1b4 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -495,9 +495,10 @@ BB_info* get_BB_info(IRBB* bbIn, Addr origAddr) if (Ist_IMark == st->tag) n_instrs++; } - // Check that the BB has never been translated before. If this - // assertion fails, there has been some screwup in translation - // discard/invalidation management. + // Check that we don't have an entry for this BB in the instr-info table. + // If this assertion fails, there has been some screwup: some + // translations must have been discarded but Cachegrind hasn't discarded + // the corresponding entries in the instr-info table. bbInfo = (BB_info*)VG_(HT_lookup)(instr_info_table, origAddr); tl_assert(NULL == bbInfo); @@ -514,13 +515,11 @@ BB_info* get_BB_info(IRBB* bbIn, Addr origAddr) static -void init_instr_info( /*OUT*/instr_info* n, - Addr instr_addr, Int instr_len ) +void init_instr_info( instr_info* n, Addr instr_addr, Int instr_len ) { - lineCC* parent = get_lineCC(instr_addr); - n->instr_addr = instr_addr; - n->instr_len = instr_len; - n->parent = parent; + n->instr_addr = instr_addr; + n->instr_len = instr_len; + n->parent = get_lineCC(instr_addr); } static void showEvent ( Event* ev ) |