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 45f13ce commit 86eec7cCopy full SHA for 86eec7c
Sources/LLVM/Module.swift
@@ -22,6 +22,16 @@ public class Context {
22
self.ownsContext = ownsContext
23
}
24
25
+ /// Returns whether the given context is set to discard all value names.
26
+ ///
27
+ /// If true, only the names of GlobalValue objects will be available in
28
+ /// the IR. This can be used to save memory and runtime, especially in
29
+ /// release mode.
30
+ public var discardValueNames: Bool {
31
+ get { return LLVMContextShouldDiscardValueNames(self.llvm) != 0 }
32
+ set { LLVMContextSetDiscardValueNames(self.llvm, newValue.llvm) }
33
+ }
34
+
35
deinit {
36
if ownsContext {
37
LLVMContextDispose(llvm)
0 commit comments