diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2025-01-17 19:51:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-17 19:51:14 +0000 |
commit | 10fdd09c3bda8bfc532cecf4f11babaf356554f3 (patch) | |
tree | b0e78d30ee44d83615c9d6b121a71c2cd330a5da /llvm/lib/IR/DebugInfo.cpp | |
parent | fec503d1a3f48e600d0a8e108757dedba909f40c (diff) | |
download | llvm-10fdd09c3bda8bfc532cecf4f11babaf356554f3.zip llvm-10fdd09c3bda8bfc532cecf4f11babaf356554f3.tar.gz llvm-10fdd09c3bda8bfc532cecf4f11babaf356554f3.tar.bz2 |
[clang][DebugInfo] Emit DW_AT_object_pointer on function declarations with explicit `this` (#122928)
In https://github.com/llvm/llvm-project/pull/122897 we started attaching
`DW_AT_object_pointer` to function definitions. This patch does the same
but for function declarations (which we do for implicit object pointers
already).
Fixes https://github.com/llvm/llvm-project/issues/120974
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index e5b45e0..4ce5180 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -1432,10 +1432,11 @@ LLVMDIBuilderCreateObjCProperty(LLVMDIBuilderRef Builder, PropertyAttributes, unwrapDI<DIType>(Ty))); } -LLVMMetadataRef -LLVMDIBuilderCreateObjectPointerType(LLVMDIBuilderRef Builder, - LLVMMetadataRef Type) { - return wrap(unwrap(Builder)->createObjectPointerType(unwrapDI<DIType>(Type))); +LLVMMetadataRef LLVMDIBuilderCreateObjectPointerType(LLVMDIBuilderRef Builder, + LLVMMetadataRef Type, + LLVMBool Implicit) { + return wrap(unwrap(Builder)->createObjectPointerType(unwrapDI<DIType>(Type), + Implicit)); } LLVMMetadataRef |