]> granicus.if.org Git - clang/commit
CodeGen: Clean up implementation of vtable initializer builder. NFC.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Sep 2016 01:14:39 +0000 (01:14 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 8 Sep 2016 01:14:39 +0000 (01:14 +0000)
commit0d892e5f8350252108762c66e0d30fa6bad22b6f
treeddc986e6499c5638ac6e1b4e61086652c3ffc20d
parentdd34fc94f9ec374d72ae81918e61c83224841217
CodeGen: Clean up implementation of vtable initializer builder. NFC.

- Simplify signature of CreateVTableInitializer function.
- Move vtable component builder to a separate function.
- Remove unnecessary accessors from VTableLayout class.

This is in preparation for a future change that will alter the type of the
vtable initializer.

Differential Revision: https://reviews.llvm.org/D22642

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280897 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/VTableBuilder.h
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CGVTables.h
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/MicrosoftCXXABI.cpp