File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,11 @@ public extension IRType {
31
31
}
32
32
33
33
/// Dumps a representation of this type to stderr.
34
+ #if !NDEBUG || LLVM_ENABLE_DUMP
34
35
public func dump( ) {
35
36
LLVMDumpType ( asLLVM ( ) )
36
37
}
38
+ #endif
37
39
}
38
40
39
41
internal func convertType( _ type: LLVMTypeRef ) -> IRType {
Original file line number Diff line number Diff line change @@ -68,10 +68,12 @@ public extension IRValue {
68
68
LLVMReplaceAllUsesWith ( asLLVM ( ) , value. asLLVM ( ) )
69
69
}
70
70
71
+ #if !NDEBUG || LLVM_ENABLE_DUMP
71
72
/// Dumps a representation of this value to stderr.
72
73
public func dump( ) {
73
74
LLVMDumpValue ( asLLVM ( ) )
74
75
}
76
+ #endif
75
77
}
76
78
77
79
extension LLVMValueRef : IRValue {
Original file line number Diff line number Diff line change @@ -180,10 +180,12 @@ public final class Module: CustomStringConvertible {
180
180
}
181
181
}
182
182
183
+ #if !NDEBUG || LLVM_ENABLE_DUMP
183
184
/// Dump a representation of this module to stderr.
184
185
public func dump( ) {
185
186
LLVMDumpModule ( llvm)
186
187
}
188
+ #endif
187
189
188
190
/// The full text IR of this module
189
191
public var description : String {
You can’t perform that action at this time.
0 commit comments