[CodeGen] Disable aggressive structor optimizations at -O0, take 3
authorPavel Labath <labath@google.com>
Thu, 19 Jul 2018 14:05:22 +0000 (14:05 +0000)
committerPavel Labath <labath@google.com>
Thu, 19 Jul 2018 14:05:22 +0000 (14:05 +0000)
commit45a8dfacf4f89cb64948b2f6bdb60c3df0493f77
treeea19a950b8faac8be2f4eb538397cf3db1d82850
parenta0da24683b2bf40a3c16077834ca2ac98622591c
[CodeGen] Disable aggressive structor optimizations at -O0, take 3

The previous version of this patch (r332839) was reverted because it was
causing "definition with same mangled name as another definition" errors
in some module builds. This was caused by an unrelated bug in module
importing which it exposed. The importing problem was fixed in r336240,
so this recommits the original patch (r332839).

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

llvm-svn: 337456
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/ctor-dtor-alias.cpp
clang/test/CodeGenCXX/float16-declarations.cpp