Rollup merge of #80990 - cuviper:unused-debug-context, r=nagisa
llvm: Remove the unused context from CreateDebugLocation This went unused in commit 88d874de6395, part of #68965.
This commit is contained in:
commit
494cb3cc7c
@ -552,7 +552,6 @@ impl DebugInfoMethods<'tcx> for CodegenCx<'ll, 'tcx> {
|
|||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
llvm::LLVMRustDIBuilderCreateDebugLocation(
|
llvm::LLVMRustDIBuilderCreateDebugLocation(
|
||||||
utils::debug_context(self).llcontext,
|
|
||||||
line.unwrap_or(UNKNOWN_LINE_NUMBER),
|
line.unwrap_or(UNKNOWN_LINE_NUMBER),
|
||||||
col.unwrap_or(UNKNOWN_COLUMN_NUMBER),
|
col.unwrap_or(UNKNOWN_COLUMN_NUMBER),
|
||||||
scope,
|
scope,
|
||||||
|
@ -2102,7 +2102,6 @@ extern "C" {
|
|||||||
);
|
);
|
||||||
|
|
||||||
pub fn LLVMRustDIBuilderCreateDebugLocation(
|
pub fn LLVMRustDIBuilderCreateDebugLocation(
|
||||||
Context: &'a Context,
|
|
||||||
Line: c_uint,
|
Line: c_uint,
|
||||||
Column: c_uint,
|
Column: c_uint,
|
||||||
Scope: &'a DIScope,
|
Scope: &'a DIScope,
|
||||||
|
@ -994,11 +994,9 @@ LLVMRustDICompositeTypeReplaceArrays(LLVMRustDIBuilderRef Builder,
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" LLVMMetadataRef
|
extern "C" LLVMMetadataRef
|
||||||
LLVMRustDIBuilderCreateDebugLocation(LLVMContextRef ContextRef, unsigned Line,
|
LLVMRustDIBuilderCreateDebugLocation(unsigned Line, unsigned Column,
|
||||||
unsigned Column, LLVMMetadataRef Scope,
|
LLVMMetadataRef Scope,
|
||||||
LLVMMetadataRef InlinedAt) {
|
LLVMMetadataRef InlinedAt) {
|
||||||
LLVMContext &Context = *unwrap(ContextRef);
|
|
||||||
|
|
||||||
DebugLoc debug_loc = DebugLoc::get(Line, Column, unwrapDIPtr<MDNode>(Scope),
|
DebugLoc debug_loc = DebugLoc::get(Line, Column, unwrapDIPtr<MDNode>(Scope),
|
||||||
unwrapDIPtr<MDNode>(InlinedAt));
|
unwrapDIPtr<MDNode>(InlinedAt));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user