Dan Gohman 03c3dc7b68 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();
  }


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106285 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-18 15:56:31 +00:00
..
2010-05-14 23:01:02 +00:00
2010-04-07 05:20:54 +00:00
2010-01-16 21:55:24 +00:00
2010-02-10 16:03:48 +00:00
2010-04-29 12:32:45 +00:00
2010-03-16 10:59:48 +00:00
2010-05-10 20:24:27 +00:00
2010-01-20 19:25:45 +00:00
2010-05-29 06:11:16 +00:00