[llvm] d4a3ad7 - [ADT] Remove PointerUnionTypeSelector (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 08:07:38 PDT 2021


Author: Kazu Hirata
Date: 2021-08-02T08:07:25-07:00
New Revision: d4a3ad70d51d6739984bd24b2ef83e5058abd7de

URL: https://github.com/llvm/llvm-project/commit/d4a3ad70d51d6739984bd24b2ef83e5058abd7de
DIFF: https://github.com/llvm/llvm-project/commit/d4a3ad70d51d6739984bd24b2ef83e5058abd7de.diff

LOG: [ADT] Remove PointerUnionTypeSelector (NFC)

The last use was removed on May 17, 2019 in commit
9b92875bbdde7c1e01b9e739da66aa876022eadd.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/PointerUnion.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/PointerUnion.h b/llvm/include/llvm/ADT/PointerUnion.h
index c39691061b720..f25aa16016bd5 100644
--- a/llvm/include/llvm/ADT/PointerUnion.h
+++ b/llvm/include/llvm/ADT/PointerUnion.h
@@ -23,36 +23,6 @@
 
 namespace llvm {
 
-template <typename T> struct PointerUnionTypeSelectorReturn {
-  using Return = T;
-};
-
-/// Get a type based on whether two types are the same or not.
-///
-/// For:
-///
-/// \code
-///   using Ret = typename PointerUnionTypeSelector<T1, T2, EQ, NE>::Return;
-/// \endcode
-///
-/// Ret will be EQ type if T1 is same as T2 or NE type otherwise.
-template <typename T1, typename T2, typename RET_EQ, typename RET_NE>
-struct PointerUnionTypeSelector {
-  using Return = typename PointerUnionTypeSelectorReturn<RET_NE>::Return;
-};
-
-template <typename T, typename RET_EQ, typename RET_NE>
-struct PointerUnionTypeSelector<T, T, RET_EQ, RET_NE> {
-  using Return = typename PointerUnionTypeSelectorReturn<RET_EQ>::Return;
-};
-
-template <typename T1, typename T2, typename RET_EQ, typename RET_NE>
-struct PointerUnionTypeSelectorReturn<
-    PointerUnionTypeSelector<T1, T2, RET_EQ, RET_NE>> {
-  using Return =
-      typename PointerUnionTypeSelector<T1, T2, RET_EQ, RET_NE>::Return;
-};
-
 namespace pointer_union_detail {
   /// Determine the number of bits required to store integers with values < n.
   /// This is ceil(log2(n)).


        


More information about the llvm-commits mailing list