diff mbox

[google] Do not declare pmu and sampling rate related vars for profile-use build (issue4832042)

Message ID 20110729051313.9BF291B40AA@aples.mtv.corp.google.com
State New
Headers show

Commit Message

Xinliang David Li July 29, 2011, 5:13 a.m. UTC
The following trivial patch will be applied to google branches.
Bootstrap and tessted on x86-64/linux

2011-07-28  David Li  <davidxl@google.com>

	* coverage.c (coverage_init): Remove checking of profile-use
	flags.


--
This patch is available for review at http://codereview.appspot.com/4832042
diff mbox

Patch

Index: coverage.c
===================================================================
--- coverage.c	(revision 176765)
+++ coverage.c	(working copy)
@@ -1952,9 +1952,10 @@  coverage_init (const char *filename, con
 static bool
 profiling_enabled_p (void)
 {
-  return flag_pmu_profile_generate || profile_arc_flag ||
-      flag_profile_generate_sampling || flag_test_coverage ||
-      flag_branch_probabilities || flag_profile_reusedist;
+  return flag_pmu_profile_generate
+   || profile_arc_flag
+   || flag_profile_generate_sampling
+   || flag_profile_reusedist;
 }
 
 /* Construct variables for PMU profiling.