]> granicus.if.org Git - clang/commit
MS ABI: Fix vftable mangling by using the vbtable name algorithm
authorReid Kleckner <reid@kleckner.net>
Thu, 27 Feb 2014 19:40:09 +0000 (19:40 +0000)
committerReid Kleckner <reid@kleckner.net>
Thu, 27 Feb 2014 19:40:09 +0000 (19:40 +0000)
commit04d3c8a09464f433b3d6ba46b6e658f537e73b89
tree35cb2300bf5143d014b62128892a275cbd2b334f
parentdda6f52db192491cd828db5d4fb56be41d4897ac
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
include/clang/AST/VTableBuilder.h
lib/AST/VTableBuilder.cpp
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-vtables-single-inheritance.cpp
test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp