[Lldb-commits] [clang] [lldb] Reland [MS][clang] Add support for vector deleting destructors (PR #165598)
David Majnemer via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 30 10:02:57 PDT 2025
majnemer wrote:
Will we generate local vftables for dllimport'd classes too? I think that is needed as part of properly supporting this feature.
Example input:
```c++
struct __declspec(dllexport) A {
virtual ~A();
};
struct __declspec(dllimport) B {
virtual ~B();
};
void* f() {return new A;}
void* g() {return new B;}
```
MSVC generates:
```
const B::`local vftable' DQ FLAT:const B::`RTTI Complete Object Locator' ; B::`local vftable'
DQ FLAT:virtual void * B::`vector deleting destructor'(unsigned int)
const A::`vftable' DQ FLAT:const A::`RTTI Complete Object Locator' ; A::`vftable'
DQ FLAT:virtual void * A::`vector deleting destructor'(unsigned int)
```
https://github.com/llvm/llvm-project/pull/165598
More information about the lldb-commits
mailing list