Skip to content

Commit

Permalink
Merge pull request #174 from CodaFi/publicity-stunt
Browse files Browse the repository at this point in the history
Silence public member of public extension warnings
  • Loading branch information
CodaFi authored Feb 25, 2019
2 parents f74e159 + f8bef17 commit 34fbb5f
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 34fbb5f

Please sign in to comment.