Add an optimization to GlobalOpt that eliminates calls to __cxa_atexit, if the functi...
authorAnders Carlsson <andersca@mac.com>
Sun, 20 Mar 2011 17:59:11 +0000 (17:59 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 20 Mar 2011 17:59:11 +0000 (17:59 +0000)
commita201c4c2e604a519665ca55dc49e913628444ddb
tree88c361a2c38e6e4539d95e276425b26157dc9e79
parented8f9589a8767d3a61aeda6661b74891df80fa18
Add an optimization to GlobalOpt that eliminates calls to __cxa_atexit, if the function passed is empty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/cxx-dtor.ll [new file with mode: 0644]