-
Notifications
You must be signed in to change notification settings - Fork 57
Document Some Values #3
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
Conversation
@@ -67,17 +103,35 @@ public final class Module { | |||
throw ModuleError.couldNotEmitBitCode(path: path) | |||
} | |||
} | |||
|
|||
|
|||
/// Creates a type with the given name in this module if that name does not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function doesn't create any new types, only retrieves.
public func type(named name: String) -> IRType? { | ||
guard let type = LLVMGetTypeByName(llvm, name) else { return nil } | ||
return convertType(type) | ||
} | ||
|
||
|
||
/// Creates a function with the given name in this module if that name does |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, only retrieves named functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just those two comments. Thanks!
Re |
Or we make a |
3d02cf3
to
8fdf2ce
Compare
Thanks!! |
Documents
May want to consider refactoring
Use
. It's a weird data type that should be aSequence
.