Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LLVMExtSetCurrentDebugLocation from llvm_ext.cc for LLVM 9+ #13965

Conversation

HertzDevil
Copy link
Contributor

Resolves part of #13946. Closes #13487.

LLVM::Builder#set_current_debug_location(line, column, scope, inlined_at = nil) is now deprecated. The corresponding metadata should be created using LLVM::DIBuilder#create_debug_location.

A compiler built with LLVM 8 still needs the existing LLVMExtSetCurrentDebugLocation when clearing the current debug location, since doing debug_loc = di_builder.create_debug_location(0, 0, nil) or calling LibLLVM.set_current_debug_location(self, nil) will break the generated IR.

@straight-shoota straight-shoota added this to the 1.11.0 milestone Nov 11, 2023
@straight-shoota straight-shoota merged commit 3a83996 into crystal-lang:master Nov 13, 2023
54 of 55 checks passed
@HertzDevil HertzDevil deleted the refactor/llvm-ext-set-current-debug-location2 branch November 13, 2023 16:50
Blacksmoke16 pushed a commit to Blacksmoke16/crystal that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants