[llvm] [IR] Remove variadic overload of StructType::setBody. NFC. (PR #114421)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 01:15:36 PST 2024
https://github.com/jayfoad updated https://github.com/llvm/llvm-project/pull/114421
>From 049d5efaaa3b5b5e284ca05c320443dd4352c9fc Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Thu, 31 Oct 2024 16:01:01 +0000
Subject: [PATCH] [IR] Remove variadic overload of StructType::setBody. NFC.
This is unused in-tree.
---
llvm/include/llvm/IR/DerivedTypes.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index 820b5c0707df6c..7aabda9e6d78a8 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -320,13 +320,6 @@ class StructType : public Type {
/// Specify a body for an opaque identified type.
void setBody(ArrayRef<Type*> Elements, bool isPacked = false);
- template <typename... Tys>
- std::enable_if_t<are_base_of<Type, Tys...>::value, void>
- setBody(Type *elt1, Tys *... elts) {
- assert(elt1 && "Cannot create a struct type with no elements with this");
- setBody(ArrayRef<Type *>({elt1, elts...}));
- }
-
/// Return true if the specified type is valid as a element type.
static bool isValidElementType(Type *ElemTy);
More information about the llvm-commits
mailing list