Add ability to layout the vtable pointer in trivial cases. I noticed
authorMike Stump <mrs@apple.com>
Thu, 30 Jul 2009 00:22:38 +0000 (00:22 +0000)
committerMike Stump <mrs@apple.com>
Thu, 30 Jul 2009 00:22:38 +0000 (00:22 +0000)
commit3dc7eb94403c9de3c5ec2cc0ffd9c4b7f57ba5fb
tree7a35d514fee4bc3d18759ba9d45f15bfea8b0a38
parent13ddd8514f8a852ac6fbb008e1e0ef4f61cc6270
Add ability to layout the vtable pointer in trivial cases.  I noticed
that we would silently do bad things with virtual bases in the layout
code, so, we just turn them off.  When people do better things with
them, we can turn them back on.

llvm-svn: 77556
clang/lib/AST/RecordLayoutBuilder.cpp
clang/lib/AST/RecordLayoutBuilder.h
clang/lib/CodeGen/CodeGenTypes.cpp
clang/test/CodeGenCXX/virt.cpp [new file with mode: 0644]