[libcxx] Remove unused macro _LIBCPP_HAS_UNIQUE_TYPEINFO
authorLouis Dionne <ldionne@apple.com>
Fri, 21 Dec 2018 20:14:43 +0000 (20:14 +0000)
committerLouis Dionne <ldionne@apple.com>
Fri, 21 Dec 2018 20:14:43 +0000 (20:14 +0000)
Summary:
We already have the negation of that as _LIBCPP_HAS_NONUNIQUE_TYPEINFO.
Having both defined is confusing, since only one of them is used.

Reviewers: EricWF, mclow.lists

Subscribers: christof, jkorous, dexonsmith, libcxx-commits

Differential Revision: https://reviews.llvm.org/D54537

llvm-svn: 349947

libcxx/include/typeinfo

index 92f1e22..8411532 100644 (file)
@@ -73,12 +73,8 @@ public:
 #include <vcruntime_typeinfo.h>
 #else
 
-#if !defined(_LIBCPP_ABI_MICROSOFT)
-#if defined(_LIBCPP_NONUNIQUE_RTTI_BIT)
-#define _LIBCPP_HAS_NONUNIQUE_TYPEINFO
-#else
-#define _LIBCPP_HAS_UNIQUE_TYPEINFO
-#endif
+#if defined(_LIBCPP_NONUNIQUE_RTTI_BIT) && !defined(_LIBCPP_ABI_MICROSOFT)
+#   define _LIBCPP_HAS_NONUNIQUE_TYPEINFO
 #endif
 
 namespace std  // purposefully not using versioning namespace