Skip to content

Added iteration attributes to Module, Global, and Function #31

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
Jan 14, 2017

Conversation

harlanhaskins
Copy link
Member

No description provided.

/// Dump a representation of this module to stderr.
public func dump() {
LLVMDumpModule(llvm)
}

/// The full text IR of this module
public var description: String {
let cStr = LLVMPrintModuleToString(llvm)!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems... heavy for description. But I can find precedent in other bindings for this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't think of any other thing for description.
This would also allow for print(module) to print the IR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@CodaFi
Copy link
Member

CodaFi commented Jan 14, 2017

LGTM modulo the discussion I just started.

@harlanhaskins harlanhaskins merged commit 2576d01 into master Jan 14, 2017
@harlanhaskins harlanhaskins deleted the form-over-function branch January 14, 2017 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants