summaryrefslogtreecommitdiffstats
path: root/llvm/utils/benchmark/src
diff options
context:
space:
mode:
authorKirill Bobyrev <kbobyrev.opensource@gmail.com>2018-08-28 10:27:49 +0000
committerKirill Bobyrev <kbobyrev.opensource@gmail.com>2018-08-28 10:27:49 +0000
commit6a5c01c7e98f27834da0335a1ff96ec99872e18b (patch)
treeeaeb72b4cb50a0d0587d65d9a5771b90efa8ffa7 /llvm/utils/benchmark/src
parentf119e27d80a43e250fc8b09453419cfc4e799359 (diff)
downloadbcm5719-llvm-6a5c01c7e98f27834da0335a1ff96ec99872e18b.tar.gz
bcm5719-llvm-6a5c01c7e98f27834da0335a1ff96ec99872e18b.zip
[benchmark] Silence warning by applying upstream patch
ompiling benchmark library (introduced in D50894) with the latest bootstrapped Clang produces a lot of warnings, this issue was addressed in the upstream patch I pushed earlier. Upstream patch: https://github.com/google/benchmark/commit/f85304e4e3a0e4e1bf15b91720df4a19e90b589f `README.LLVM` notes were updated to reflect the latest changes. Reviewed by: lebedev.ri Differential Revision: https://reviews.llvm.org/D51342 llvm-svn: 340811
Diffstat (limited to 'llvm/utils/benchmark/src')
-rw-r--r--llvm/utils/benchmark/src/internal_macros.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/utils/benchmark/src/internal_macros.h b/llvm/utils/benchmark/src/internal_macros.h
index edb8a5c0a35..3c1cda39c2f 100644
--- a/llvm/utils/benchmark/src/internal_macros.h
+++ b/llvm/utils/benchmark/src/internal_macros.h
@@ -6,9 +6,6 @@
#ifndef __has_feature
#define __has_feature(x) 0
#endif
-#ifndef __has_builtin
-#define __has_builtin(x) 0
-#endif
#if defined(__clang__)
#if !defined(COMPILER_CLANG)
@@ -78,12 +75,4 @@
#define BENCHMARK_MAYBE_UNUSED
#endif
-#if defined(COMPILER_GCC) || __has_builtin(__builtin_unreachable)
- #define BENCHMARK_UNREACHABLE() __builtin_unreachable()
-#elif defined(COMPILER_MSVC)
- #define BENCHMARK_UNREACHABLE() __assume(false)
-#else
- #define BENCHMARK_UNREACHABLE() ((void)0)
-#endif
-
#endif // BENCHMARK_INTERNAL_MACROS_H_
OpenPOWER on IntegriCloud