summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2020-01-14 15:46:13 +0100
committerDmitri Gribenko <gribozavr@gmail.com>2020-01-14 18:56:29 +0100
commit2948ec5ca98f8593584f2117bc92fe8d75f6f098 (patch)
tree417b18aa594f1db005b57eca3c27eb9ca0517427 /llvm/include
parent0877843ddacca0bea049b65d8a328e5038c72b66 (diff)
downloadbcm5719-llvm-2948ec5ca98f8593584f2117bc92fe8d75f6f098.tar.gz
bcm5719-llvm-2948ec5ca98f8593584f2117bc92fe8d75f6f098.zip
Removed PointerUnion3 and PointerUnion4 aliases in favor of the variadic template
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/PointerUnion.h10
-rw-r--r--llvm/include/llvm/Support/SourceMgr.h8
2 files changed, 4 insertions, 14 deletions
diff --git a/llvm/include/llvm/ADT/PointerUnion.h b/llvm/include/llvm/ADT/PointerUnion.h
index 2ad96c52751..40b7b000da4 100644
--- a/llvm/include/llvm/ADT/PointerUnion.h
+++ b/llvm/include/llvm/ADT/PointerUnion.h
@@ -272,16 +272,6 @@ struct PointerLikeTypeTraits<PointerUnion<PTs...>> {
PointerUnion<PTs...>::Val)>::NumLowBitsAvailable;
};
-/// A pointer union of three pointer types. See documentation for PointerUnion
-/// for usage.
-template <typename PT1, typename PT2, typename PT3>
-using PointerUnion3 = PointerUnion<PT1, PT2, PT3>;
-
-/// A pointer union of four pointer types. See documentation for PointerUnion
-/// for usage.
-template <typename PT1, typename PT2, typename PT3, typename PT4>
-using PointerUnion4 = PointerUnion<PT1, PT2, PT3, PT4>;
-
// Teach DenseMap how to use PointerUnions as keys.
template <typename ...PTs> struct DenseMapInfo<PointerUnion<PTs...>> {
using Union = PointerUnion<PTs...>;
diff --git a/llvm/include/llvm/Support/SourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h
index aa6026c23d0..1b005519e5d 100644
--- a/llvm/include/llvm/Support/SourceMgr.h
+++ b/llvm/include/llvm/Support/SourceMgr.h
@@ -61,10 +61,10 @@ private:
/// into relatively small files (often smaller than 2^8 or 2^16 bytes),
/// we select the offset vector element type dynamically based on the
/// size of Buffer.
- using VariableSizeOffsets = PointerUnion4<std::vector<uint8_t> *,
- std::vector<uint16_t> *,
- std::vector<uint32_t> *,
- std::vector<uint64_t> *>;
+ using VariableSizeOffsets = PointerUnion<std::vector<uint8_t> *,
+ std::vector<uint16_t> *,
+ std::vector<uint32_t> *,
+ std::vector<uint64_t> *>;
/// Vector of offsets into Buffer at which there are line-endings
/// (lazily populated). Once populated, the '\n' that marks the end of
OpenPOWER on IntegriCloud