Skip to content

Commit

Permalink
Silence public member of public extension warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaFi committed Feb 25, 2019
1 parent f74e159 commit f8bef17
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 89 deletions.
8 changes: 4 additions & 4 deletions Sources/LLVM/IRType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public protocol IRType {

public extension IRType {
/// Returns the special `null` value for this type.
public func null() -> IRConstant {
func null() -> IRConstant {
return Constant<Struct>(llvm: LLVMConstNull(asLLVM()))
}

Expand All @@ -20,18 +20,18 @@ public extension IRType {
/// The `undef` value can be used anywhere a constant is expected, and
/// indicates that the user of the value may receive an unspecified
/// bit-pattern.
public func undef() -> IRValue {
func undef() -> IRValue {
return LLVMGetUndef(asLLVM())
}

/// Returns the special LLVM constant `null` pointer value for this type
/// initialized to `null`.
public func constPointerNull() -> IRConstant {
func constPointerNull() -> IRConstant {
return Constant<Struct>(llvm: LLVMConstPointerNull(asLLVM()))
}

/// Returns the context associated with this type
public var context: Context {
var context: Context {
return Context(llvm: LLVMGetTypeContext(asLLVM()))
}
}
Expand Down
Loading

0 comments on commit f8bef17

Please sign in to comment.