diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-09-24 14:47:51 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-09-24 14:47:51 +0000 |
commit | 3a91ada1e25423d8ccb234d41d336c72b37a42c7 (patch) | |
tree | a6d35b876401c2d1aaf6a61c20a4fc389998e45a /openmp/runtime/src | |
parent | d0203cbf1caac873b618f3256cb3d134d940e0e6 (diff) | |
download | bcm5719-llvm-3a91ada1e25423d8ccb234d41d336c72b37a42c7.tar.gz bcm5719-llvm-3a91ada1e25423d8ccb234d41d336c72b37a42c7.zip |
Fix stats build problem.
This change removes the KMP_STATS_ENABLED macro inside kmp_stats.cpp since it
is only compiled anyways when LIBOMP_STATS=on. Also, include kmp_config.h in
kmp_stats.h to ensure KMP_STATS_ENABLED is defined.
llvm-svn: 248494
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r-- | openmp/runtime/src/kmp_stats.cpp | 4 | ||||
-rw-r--r-- | openmp/runtime/src/kmp_stats.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/openmp/runtime/src/kmp_stats.cpp b/openmp/runtime/src/kmp_stats.cpp index 0167d3666a0..d1f43afe4ae 100644 --- a/openmp/runtime/src/kmp_stats.cpp +++ b/openmp/runtime/src/kmp_stats.cpp @@ -12,9 +12,6 @@ // //===----------------------------------------------------------------------===// - -#if KMP_STATS_ENABLED - #include "kmp.h" #include "kmp_str.h" #include "kmp_lock.h" @@ -610,4 +607,3 @@ void __kmp_stats_init(void) } // extern "C" -#endif // KMP_STATS_ENABLED diff --git a/openmp/runtime/src/kmp_stats.h b/openmp/runtime/src/kmp_stats.h index 9922bfc7961..20cec3efccf 100644 --- a/openmp/runtime/src/kmp_stats.h +++ b/openmp/runtime/src/kmp_stats.h @@ -15,6 +15,7 @@ // //===----------------------------------------------------------------------===// +#include "kmp_config.h" #if KMP_STATS_ENABLED /* |