diff --git a/Sources/CodeGen/LLVM/FloatingPointPredicate.swift b/Sources/CodeGen/LLVM/FloatingPointPredicate.swift index 2ace86de4..9eee010d5 100644 --- a/Sources/CodeGen/LLVM/FloatingPointPredicate.swift +++ b/Sources/CodeGen/LLVM/FloatingPointPredicate.swift @@ -1,8 +1,7 @@ -import Core import LLVM -extension LLVM.FloatingPointPredicate { +extension FloatingPointPredicate { public init(_ p: Core.FloatingPointPredicate) { - self = LLVM.FloatingPointPredicate(rawValue: p.rawValue)! + self = FloatingPointPredicate(rawValue: p.rawValue)! } } diff --git a/Sources/CodeGen/LLVM/IntegerPredicate.swift b/Sources/CodeGen/LLVM/IntegerPredicate.swift index 2cc1e8806..f3f950fb6 100644 --- a/Sources/CodeGen/LLVM/IntegerPredicate.swift +++ b/Sources/CodeGen/LLVM/IntegerPredicate.swift @@ -1,8 +1,7 @@ -import Core import LLVM -extension LLVM.IntegerPredicate { +extension IntegerPredicate { public init(_ p: Core.IntegerPredicate) { - self = LLVM.IntegerPredicate(rawValue: p.rawValue)! + self = IntegerPredicate(rawValue: p.rawValue)! } } diff --git a/Sources/CodeGen/LLVM/OverflowBehavior.swift b/Sources/CodeGen/LLVM/OverflowBehavior.swift index e565985b9..f5b67e952 100644 --- a/Sources/CodeGen/LLVM/OverflowBehavior.swift +++ b/Sources/CodeGen/LLVM/OverflowBehavior.swift @@ -1,12 +1,11 @@ -import Core import LLVM -extension LLVM.OverflowBehavior { +extension OverflowBehavior { public init(_ ob: Core.OverflowBehavior) { self = switch ob { - case .ignore: .ignore - case .nuw: .nuw - case .nsw: .nsw + case .ignore: OverflowBehavior.ignore + case .nuw: OverflowBehavior.nuw + case .nsw: OverflowBehavior.nsw } } }