File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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) ) }
You can’t perform that action at this time.
0 commit comments