Skip to content

Silence public member of public extension warnings #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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