MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / finalize

Method finalize

crates/rustc_codegen_nvvm/src/debug_info/mod.rs:86–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

84 }
85
86 pub fn finalize(&self) {
87 unsafe {
88 llvm::LLVMRustDIBuilderFinalize(self.builder);
89
90 // Prevent bitcode readers from deleting the debug info.
91 let ptr = "Debug Info Version\0".as_ptr();
92 llvm::LLVMRustAddModuleFlag(
93 self.llmod,
94 ptr.cast(),
95 llvm::LLVMRustDebugMetadataVersion(),
96 );
97 }
98 }
99}
100
101impl<'a, 'll, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'll, 'tcx> {

Callers 2

debuginfo_finalizeMethod · 0.45

Calls 5

LLVMRustAddModuleFlagFunction · 0.85
as_ptrMethod · 0.80
castMethod · 0.45

Tested by

no test coverage detected