diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-02-01 14:00:20 +1100 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-02-01 14:14:40 +1100 |
| commit | 8ddd9c38f6165d40ca1ab82e1d2bf9890a047c3a (patch) | |
| tree | f3f1f7be5ee0863d0ba23d4178fe034a47bfed08 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 949b4673ceebd767cc0b138392b420a050dc6ce0 (diff) | |
| download | rust-8ddd9c38f6165d40ca1ab82e1d2bf9890a047c3a.tar.gz rust-8ddd9c38f6165d40ca1ab82e1d2bf9890a047c3a.zip | |
Use `LLVMDIBuilderCreateDebugLocation`
The LLVM-C binding takes an explicit context, whereas our binding obtained the context from the scope argument.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 6805ecfed03..76ad7fc8909 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -1316,16 +1316,6 @@ extern "C" void LLVMRustDICompositeTypeReplaceArrays( } extern "C" LLVMMetadataRef -LLVMRustDIBuilderCreateDebugLocation(unsigned Line, unsigned Column, - LLVMMetadataRef ScopeRef, - LLVMMetadataRef InlinedAt) { - MDNode *Scope = unwrapDIPtr<MDNode>(ScopeRef); - DILocation *Loc = DILocation::get(Scope->getContext(), Line, Column, Scope, - unwrapDIPtr<MDNode>(InlinedAt)); - return wrap(Loc); -} - -extern "C" LLVMMetadataRef LLVMRustDILocationCloneWithBaseDiscriminator(LLVMMetadataRef Location, unsigned BD) { DILocation *Loc = unwrapDIPtr<DILocation>(Location); |
