Replace TINT_HAS_ATTRIBUTE with DAWN_HAS_ATTRIBUTE
This CL removes the TINT_HAS_ATTRIBUTE define and uses the equivalent
DAWN_HAS_ATTRIBUTE define.
Change-Id: Iec9c70b54cdaa2a91017a1dc329dcc02f64af512
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/203714
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
diff --git a/src/tint/utils/macros/compiler.h b/src/tint/utils/macros/compiler.h
index b32f2a0..e7ef1c3 100644
--- a/src/tint/utils/macros/compiler.h
+++ b/src/tint/utils/macros/compiler.h
@@ -33,7 +33,7 @@
#define TINT_REQUIRE_SEMICOLON static_assert(true)
-#if TINT_HAS_ATTRIBUTE(no_sanitize)
+#if DAWN_HAS_ATTRIBUTE(no_sanitize)
#define TINT_NO_SANITIZE(instrumentation) __attribute__((no_sanitize(instrumentation)))
#else
#define TINT_NO_SANITIZE(instrumentation)
diff --git a/src/utils/compiler.h b/src/utils/compiler.h
index 6229552..e20bdb9 100644
--- a/src/utils/compiler.h
+++ b/src/utils/compiler.h
@@ -28,12 +28,6 @@
#ifndef SRC_UTILS_COMPILER_H_
#define SRC_UTILS_COMPILER_H_
-#if defined(__has_attribute)
-#define TINT_HAS_ATTRIBUTE(x) __has_attribute(x)
-#else
-#define TINT_HAS_ATTRIBUTE(x) 0
-#endif
-
// DAWN_HAS_ATTRIBUTE
//
// A wrapper around `__has_attribute`. This test whether its operand is recognized by the compiler.