MS ABI: Fix vftable mangling by using the vbtable name algorithm
Summary: This merges VFPtrInfo and VBTableInfo into VPtrInfo, since they hold almost the same information. With that change, the vbtable mangling code can easily be applied to vftable data and we magically get the correct, unambiguous vftable names. Fixes PR17748. Reviewers: timurrrr, majnemer CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2893 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202425 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/VTableBuilder.h 37 additions, 77 deletionsinclude/clang/AST/VTableBuilder.h
- lib/AST/VTableBuilder.cpp 60 additions, 162 deletionslib/AST/VTableBuilder.cpp
- lib/CodeGen/MicrosoftCXXABI.cpp 25 additions, 27 deletionslib/CodeGen/MicrosoftCXXABI.cpp
- test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp 3 additions, 3 deletionstest/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp
- test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp 26 additions, 17 deletions.../CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp
Loading
Please register or sign in to comment