[PATCH] D86411: [libunwind] Remove static_assert / __has_feature macros
Ryan Prichard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 14:08:15 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9e32d7b6e7e6: [libunwind] Remove static_assert / __has_feature macros (authored by rprichard).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86411/new/
https://reviews.llvm.org/D86411
Files:
libunwind/src/config.h
Index: libunwind/src/config.h
===================================================================
--- libunwind/src/config.h
+++ libunwind/src/config.h
@@ -18,16 +18,6 @@
#include <stdint.h>
#include <stdlib.h>
-// Define static_assert() unless already defined by compiler.
-#ifndef __has_feature
- #define __has_feature(__x) 0
-#endif
-#if !(__has_feature(cxx_static_assert)) && !defined(static_assert)
- #define static_assert(__b, __m) \
- extern int compile_time_assert_failed[ ( __b ) ? 1 : -1 ] \
- __attribute__( ( unused ) );
-#endif
-
// Platform specific configuration defines.
#ifdef __APPLE__
#if defined(FOR_DYLD)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86411.287490.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200824/085c19f0/attachment.bin>
More information about the llvm-commits
mailing list