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)
commite53683f97b13e0ca6b98f0e45d646585dfd483ba
tree6d26782237265811760c436a91e638c022402603
parent0053c0b679b516af48086346e38f6c87017a7ca5
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

llvm-svn: 280897
clang/include/clang/AST/VTableBuilder.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGVTables.cpp
clang/lib/CodeGen/CGVTables.h
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/lib/CodeGen/MicrosoftCXXABI.cpp