We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf331e2 commit 545949bCopy full SHA for 545949b
Sources/LLVM/Alias.swift
@@ -5,6 +5,18 @@ import cllvm
5
public struct Alias: IRValue {
6
internal let llvm: LLVMValueRef
7
8
+ /// Retrieves the linkage information for this alias.
9
+ public var linkage: Linkage {
10
+ get { return Linkage(llvm: LLVMGetLinkage(asLLVM())) }
11
+ set { LLVMSetLinkage(asLLVM(), newValue.llvm) }
12
+ }
13
+
14
+ /// Retrieves the visibility style for this alias.
15
+ public var visibility: Visibility {
16
+ get { return Visibility(llvm: LLVMGetVisibility(asLLVM())) }
17
+ set { LLVMSetVisibility(asLLVM(), newValue.llvm) }
18
19
20
/// Retrieves the underlying LLVM value object.
21
public func asLLVM() -> LLVMValueRef {
22
return llvm
0 commit comments