Skip to content

Commit 995eaa1

Browse files
committed
di: Provide safe wrappers for LLVM types
Provide Rust wrappers for LLVM metadata and debug info types and aim to wrap LLVM C API functions as methods of these wrappers, therefore try to make the logic of sanitizing the DI as safe as possible.
1 parent 41d7339 commit 995eaa1

File tree

4 files changed

+556
-192
lines changed

4 files changed

+556
-192
lines changed

src/linker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl Linker {
442442
// programs and maps and remove dead code.
443443

444444
unsafe {
445-
llvm::DIFix::new(self.context, self.module).run();
445+
llvm::DISanitizer::new(self.context, self.module).run();
446446

447447
llvm::optimize(
448448
self.target_machine,

0 commit comments

Comments
 (0)