Skip to content

Commit 3af1cb4

Browse files
committed
Publicize target triple accessor
1 parent 3aff14a commit 3af1cb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/LLVM/Module.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ public final class Module: CustomStringConvertible {
9292
}
9393
}
9494

95+
/// Returns the context associated with this module.
96+
public let context: Context
97+
9598
/// Obtain the target triple for this module.
96-
var targetTriple: Triple {
99+
public var targetTriple: Triple {
97100
get {
98101
guard let id = LLVMGetTarget(llvm) else { return Triple("") }
99102
return Triple(String(cString: id))
100103
}
101104
set { LLVMSetTarget(llvm, newValue.data) }
102105
}
103106

104-
/// Returns the context associated with this module.
105-
public let context: Context
106-
107107
/// Obtain the data layout for this module.
108108
public var dataLayout: TargetData {
109109
get { return TargetData(llvm: LLVMGetModuleDataLayout(llvm)) }

0 commit comments

Comments
 (0)