i965/cfg: Allow cfg::dump to be called without a visitor.
authorMatt Turner <mattst88@gmail.com>
Wed, 19 Feb 2014 00:38:07 +0000 (16:38 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 18 Feb 2015 04:44:09 +0000 (20:44 -0800)
commit08f304bb3bfd4cc93bcc9108063afb7a8b2dd806
tree456e90b5c05c5ddb4b0deebaa6aa0cc737b43f77
parent1af5c4a526ab27ee2e4c5be96148af231f217c25
i965/cfg: Allow cfg::dump to be called without a visitor.

The fs_visitor's dump_instruction() implementation calls cfg_t()
indirectly through calculate_live_intervals, so if you have an infinite
loop in the CFG code, you can't call cfg::dump(fs_visitor *) to debug
it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_cfg.cpp