Skip to content

Commit c70d387

Browse files
[ADT] Remove makeArrayRef and makeMutableArrayRef (#79719)
These have been deprecated since: commit 36117cc Author: serge-sans-paille <[email protected]> Date: Tue Jan 10 11:49:15 2023 +0100 commit c4b39cd Author: Joe Loser <[email protected]> Date: Mon Jan 16 14:52:16 2023 -0700
1 parent 179ade6 commit c70d387

File tree

1 file changed

+0
-130
lines changed

1 file changed

+0
-130
lines changed

llvm/include/llvm/ADT/ArrayRef.h

Lines changed: 0 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -504,78 +504,6 @@ namespace llvm {
504504

505505
/// @}
506506

507-
/// @name ArrayRef Convenience constructors
508-
/// @{
509-
/// Construct an ArrayRef from a single element.
510-
template <typename T>
511-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
512-
ArrayRef<T> makeArrayRef(const T &OneElt) {
513-
return OneElt;
514-
}
515-
516-
/// Construct an ArrayRef from a pointer and length.
517-
template <typename T>
518-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
519-
ArrayRef<T> makeArrayRef(const T *data, size_t length) {
520-
return ArrayRef<T>(data, length);
521-
}
522-
523-
/// Construct an ArrayRef from a range.
524-
template <typename T>
525-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
526-
ArrayRef<T> makeArrayRef(const T *begin, const T *end) {
527-
return ArrayRef<T>(begin, end);
528-
}
529-
530-
/// Construct an ArrayRef from a SmallVector.
531-
template <typename T>
532-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
533-
ArrayRef<T> makeArrayRef(const SmallVectorImpl<T> &Vec) {
534-
return Vec;
535-
}
536-
537-
/// Construct an ArrayRef from a SmallVector.
538-
template <typename T, unsigned N>
539-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
540-
ArrayRef<T> makeArrayRef(const SmallVector<T, N> &Vec) {
541-
return Vec;
542-
}
543-
544-
/// Construct an ArrayRef from a std::vector.
545-
template <typename T>
546-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
547-
ArrayRef<T> makeArrayRef(const std::vector<T> &Vec) {
548-
return Vec;
549-
}
550-
551-
/// Construct an ArrayRef from a std::array.
552-
template <typename T, std::size_t N>
553-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
554-
ArrayRef<T> makeArrayRef(const std::array<T, N> &Arr) {
555-
return Arr;
556-
}
557-
558-
/// Construct an ArrayRef from an ArrayRef (no-op) (const)
559-
template <typename T>
560-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
561-
ArrayRef<T> makeArrayRef(const ArrayRef<T> &Vec) {
562-
return Vec;
563-
}
564-
565-
/// Construct an ArrayRef from an ArrayRef (no-op)
566-
template <typename T>
567-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
568-
ArrayRef<T> &makeArrayRef(ArrayRef<T> &Vec) {
569-
return Vec;
570-
}
571-
572-
/// Construct an ArrayRef from a C array.
573-
template <typename T, size_t N>
574-
LLVM_DEPRECATED("Use deduction guide instead", "ArrayRef")
575-
ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
576-
return ArrayRef<T>(Arr);
577-
}
578-
579507
/// @name MutableArrayRef Deduction guides
580508
/// @{
581509
/// Deduction guide to construct a `MutableArrayRef` from a single element
@@ -604,64 +532,6 @@ namespace llvm {
604532
template <typename T, size_t N>
605533
MutableArrayRef(T (&Arr)[N]) -> MutableArrayRef<T>;
606534

607-
/// @}
608-
609-
/// Construct a MutableArrayRef from a single element.
610-
template <typename T>
611-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
612-
MutableArrayRef<T> makeMutableArrayRef(T &OneElt) {
613-
return OneElt;
614-
}
615-
616-
/// Construct a MutableArrayRef from a pointer and length.
617-
template <typename T>
618-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
619-
MutableArrayRef<T> makeMutableArrayRef(T *data, size_t length) {
620-
return MutableArrayRef<T>(data, length);
621-
}
622-
623-
/// Construct a MutableArrayRef from a SmallVector.
624-
template <typename T>
625-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
626-
MutableArrayRef<T> makeMutableArrayRef(SmallVectorImpl<T> &Vec) {
627-
return Vec;
628-
}
629-
630-
/// Construct a MutableArrayRef from a SmallVector.
631-
template <typename T, unsigned N>
632-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
633-
MutableArrayRef<T> makeMutableArrayRef(SmallVector<T, N> &Vec) {
634-
return Vec;
635-
}
636-
637-
/// Construct a MutableArrayRef from a std::vector.
638-
template <typename T>
639-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
640-
MutableArrayRef<T> makeMutableArrayRef(std::vector<T> &Vec) {
641-
return Vec;
642-
}
643-
644-
/// Construct a MutableArrayRef from a std::array.
645-
template <typename T, std::size_t N>
646-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
647-
MutableArrayRef<T> makeMutableArrayRef(std::array<T, N> &Arr) {
648-
return Arr;
649-
}
650-
651-
/// Construct a MutableArrayRef from a MutableArrayRef (no-op) (const)
652-
template <typename T>
653-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
654-
MutableArrayRef<T> makeMutableArrayRef(const MutableArrayRef<T> &Vec) {
655-
return Vec;
656-
}
657-
658-
/// Construct a MutableArrayRef from a C array.
659-
template <typename T, size_t N>
660-
LLVM_DEPRECATED("Use deduction guide instead", "MutableArrayRef")
661-
MutableArrayRef<T> makeMutableArrayRef(T (&Arr)[N]) {
662-
return MutableArrayRef<T>(Arr);
663-
}
664-
665535
/// @}
666536
/// @name ArrayRef Comparison Operators
667537
/// @{

0 commit comments

Comments
 (0)