[all-commits] [llvm/llvm-project] d1b0cb: [clang][DebugInfo] Add symbol for debugger with VT...
Carlos Alberto Enciso via All-commits
all-commits at lists.llvm.org
Wed May 28 01:16:10 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d1b0cbff806b50d399826e79b9a53e4726c21302
https://github.com/llvm/llvm-project/commit/d1b0cbff806b50d399826e79b9a53e4726c21302
Author: Carlos Alberto Enciso <Carlos.Enciso at sony.com>
Date: 2025-05-28 (Wed, 28 May 2025)
Changed paths:
M clang/lib/CodeGen/CGDebugInfo.cpp
M clang/lib/CodeGen/CGDebugInfo.h
M clang/lib/CodeGen/CodeGenModule.h
M clang/lib/CodeGen/ItaniumCXXABI.cpp
M clang/test/CodeGenCXX/debug-info-class.cpp
M clang/test/CodeGenCXX/debug-info-template-member.cpp
A clang/test/CodeGenCXX/vtable-debug-info-inheritance-diamond.cpp
A clang/test/CodeGenCXX/vtable-debug-info-inheritance-multiple.cpp
A clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple-main.cpp
A clang/test/CodeGenCXX/vtable-debug-info-inheritance-simple.cpp
A clang/test/CodeGenCXX/vtable-debug-info-inheritance-virtual.cpp
M clang/test/Modules/ExtDebugInfo.cpp
Log Message:
-----------
[clang][DebugInfo] Add symbol for debugger with VTable information. (#130255)
The IR now includes a global variable for the debugger that holds
the address of the vtable.
Now every class that contains virtual functions, has a static
member (marked as artificial) that identifies where that vtable
is loaded in memory. The unmangled name is '_vtable$'.
This new symbol will allow a debugger to easily associate
classes with the physical location of their VTables using
only the DWARF information. Previously, this had to be done
by searching for ELF symbols with matching names; something
that was time-consuming and error-prone in certain edge cases.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list