diff --git a/Sources/CodeGen/LLVM/ConcreteTypeLayout.swift b/Sources/CodeGen/LLVM/ConcreteTypeLayout.swift index ea21b848f..3be0fa122 100644 --- a/Sources/CodeGen/LLVM/ConcreteTypeLayout.swift +++ b/Sources/CodeGen/LLVM/ConcreteTypeLayout.swift @@ -71,8 +71,6 @@ struct ConcreteTypeLayout { self.init(size: 8, alignment: 8) case .float128: self.init(size: 16, alignment: 8) - case .void: - notLLVMRepresentable(^t) // Cannot be used in a type layout. case .module: notLLVMRepresentable(^t) } diff --git a/Sources/CodeGen/LLVM/TypeLowering.swift b/Sources/CodeGen/LLVM/TypeLowering.swift index 797ebb529..2af3bacf4 100644 --- a/Sources/CodeGen/LLVM/TypeLowering.swift +++ b/Sources/CodeGen/LLVM/TypeLowering.swift @@ -74,8 +74,6 @@ extension IR.Program { return SwiftyLLVM.FloatingPointType.fp128(in: &module) case .ptr: return module.ptr - case .void: - return SwiftyLLVM.VoidType(in: &module) case .module: notLLVMRepresentable(t) } diff --git a/Sources/FrontEnd/Types/BuiltinType.swift b/Sources/FrontEnd/Types/BuiltinType.swift index e5ae0dc16..95581f214 100644 --- a/Sources/FrontEnd/Types/BuiltinType.swift +++ b/Sources/FrontEnd/Types/BuiltinType.swift @@ -25,9 +25,6 @@ public enum BuiltinType: TypeProtocol { /// A built-in opaque pointer. case ptr - /// A built-in void type. - case void - /// The type of the built-in module. case module @@ -66,8 +63,6 @@ extension BuiltinType: CustomStringConvertible { return "float128" case .ptr: return "ptr" - case .void: - return "void" case .module: return "Builtin" } @@ -91,8 +86,6 @@ extension BuiltinType: LosslessStringConvertible { self = .float128 case "ptr": self = .ptr - case "void": - self = .void case "Builtin": self = .module diff --git a/Sources/IR/Mangling/Demangler.swift b/Sources/IR/Mangling/Demangler.swift index c32a6be69..47a4a44c8 100644 --- a/Sources/IR/Mangling/Demangler.swift +++ b/Sources/IR/Mangling/Demangler.swift @@ -42,8 +42,6 @@ struct Demangler { demangled = takeBuiltinFloatType(from: &stream) case .builtinPointerType: demangled = .type(.builtin(.ptr)) - case .builtinVoidType: - demangled = .type(.builtin(.void)) case .builtinModuleType: demangled = .type(.builtin(.module)) case .builtinWordType: diff --git a/Sources/IR/Mangling/Mangler.swift b/Sources/IR/Mangling/Mangler.swift index 9609fcdb7..8715d5a6d 100644 --- a/Sources/IR/Mangling/Mangler.swift +++ b/Sources/IR/Mangling/Mangler.swift @@ -560,8 +560,6 @@ struct Mangler { append(integer: 128, to: &output) case .ptr: append(operator: .builtinPointerType, to: &output) - case .void: - append(operator: .builtinVoidType, to: &output) case .module: append(operator: .builtinModuleType, to: &output) } diff --git a/Sources/IR/Mangling/ManglingOperator.swift b/Sources/IR/Mangling/ManglingOperator.swift index 127324a44..337ba7417 100644 --- a/Sources/IR/Mangling/ManglingOperator.swift +++ b/Sources/IR/Mangling/ManglingOperator.swift @@ -72,8 +72,6 @@ public enum ManglingOperator: String { case builtinPointerType = "bpT" - case builtinVoidType = "bvT" - case builtinModuleType = "bmT" case builtinWordType = "bwT"