diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-11-25 22:38:11 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-11-25 22:38:11 +0000 |
commit | 149aed8dbfb2432fcc4785219f4620de5b8a8e10 (patch) | |
tree | 147cf83d4ca62fe3dca5b6f52bd640b49e447d3e /cachegrind/cg_main.c | |
parent | cb7fa5094bf449a940dc81c85853aa3c6f3a56bd (diff) |
Use the newly-added dopyIRBBExceptStmts() in tools.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6372 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'cachegrind/cg_main.c')
-rw-r--r-- | cachegrind/cg_main.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index e1ccc41e..f61c801c 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -724,12 +724,8 @@ IRBB* cg_instrument ( VgCallbackClosure* closure, VG_(tool_panic)("host/guest word size mismatch"); } - /* Set up BB, including copying of the where-next stuff. */ - cgs.bbOut = emptyIRBB(); - cgs.bbOut->tyenv = dopyIRTypeEnv(tyenv); - tl_assert( isIRAtom(bbIn->next) ); - cgs.bbOut->next = dopyIRExpr(bbIn->next); - cgs.bbOut->jumpkind = bbIn->jumpkind; + // Set up new BB + cgs.bbOut = dopyIRBBExceptStmts(bbIn); // Copy verbatim any IR preamble preceding the first IMark i = 0; |