]> granicus.if.org Git - clang/commit
PR13941: Mark all virtual functions as unnamed_addr. It's not possible to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Sep 2012 22:46:07 +0000 (22:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Sep 2012 22:46:07 +0000 (22:46 +0000)
commitef4d5ced04bf0b3d987e6b0e931f43125492f50c
treeb918266bedba6722e2d9e2b70049c2ebc39ebac0
parentb6d80fe68d30ebd14b20c96643c252c36041df8d
PR13941: Mark all virtual functions as unnamed_addr. It's not possible to
observe their addresses (taking their address gives the vtable slot) so we are
free to merge their definitions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164864 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCXX/attr.cpp
test/CodeGenCXX/member-functions.cpp