Skip to content

Commit f0485c6

Browse files
committed
Remove name property requirements from Attribute
1 parent 880fbbe commit f0485c6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/LLVM/Function+Attributes.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ public enum AttributeIndex: ExpressibleByIntegerLiteral, RawRepresentable {
223223

224224
/// An LLVM attribute.
225225
public protocol Attribute {
226-
var name: String { get }
227226
func asLLVM() -> LLVMAttributeRef
228227
}
229228

@@ -239,11 +238,6 @@ public struct EnumAttribute: Attribute {
239238
return LLVMGetEnumAttributeKind(llvm)
240239
}
241240

242-
/// The name of the attribute's kind.
243-
public var name: String {
244-
return ""
245-
}
246-
247241
/// The value of the attribute.
248242
public var value: UInt64 {
249243
return LLVMGetEnumAttributeValue(llvm)

0 commit comments

Comments
 (0)