mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
replace deprecated LLVMSetCurrentDebugLocation with LLVMSetCurrentDebugLocation2
This commit is contained in:
parent
7c96e40da8
commit
0b5f9ac73e
@ -209,8 +209,7 @@ impl<'ll> DebugInfoBuilderMethods for Builder<'_, 'll, '_> {
|
||||
|
||||
fn set_dbg_loc(&mut self, dbg_loc: &'ll DILocation) {
|
||||
unsafe {
|
||||
let dbg_loc_as_llval = llvm::LLVMRustMetadataAsValue(self.cx().llcx, dbg_loc);
|
||||
llvm::LLVMSetCurrentDebugLocation(self.llbuilder, dbg_loc_as_llval);
|
||||
llvm::LLVMSetCurrentDebugLocation2(self.llbuilder, dbg_loc);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1250,7 +1250,7 @@ extern "C" {
|
||||
pub fn LLVMDisposeBuilder<'a>(Builder: &'a mut Builder<'a>);
|
||||
|
||||
// Metadata
|
||||
pub fn LLVMSetCurrentDebugLocation<'a>(Builder: &Builder<'a>, L: &'a Value);
|
||||
pub fn LLVMSetCurrentDebugLocation2<'a>(Builder: &Builder<'a>, Loc: &'a Metadata);
|
||||
|
||||
// Terminators
|
||||
pub fn LLVMBuildRetVoid<'a>(B: &Builder<'a>) -> &'a Value;
|
||||
|
Loading…
Reference in New Issue
Block a user