aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineDominators.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 15:56:31 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 15:56:31 +0000
commit6e681a5fbed2f39c2e979a00fe2ee5392bb534a0 (patch)
treedd9e11f8c8f46c7b3427258d7755c7ea25fade2d /llvm/lib/CodeGen/MachineDominators.cpp
parent96ca25eba58f66624c0ade7f9eb98bd5e707e2bf (diff)
downloadllvm-6e681a5fbed2f39c2e979a00fe2ee5392bb534a0.zip
llvm-6e681a5fbed2f39c2e979a00fe2ee5392bb534a0.tar.gz
llvm-6e681a5fbed2f39c2e979a00fe2ee5392bb534a0.tar.bz2
Give NamedRegionTimer an Enabled flag, allowing all its clients to
switch from this: if (TimePassesIsEnabled) { NamedRegionTimer T(Name, GroupName); do_something(); } else { do_something(); // duplicate the code, this time without a timer! } to this: { NamedRegionTimer T(Name, GroupName, TimePassesIsEnabled); do_something(); } llvm-svn: 106285
Diffstat (limited to 'llvm/lib/CodeGen/MachineDominators.cpp')
0 files changed, 0 insertions, 0 deletions