Don't internalize all but main by default.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Aug 2014 20:10:38 +0000 (20:10 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Aug 2014 20:10:38 +0000 (20:10 +0000)
commit0ca286752ec266ba291b21c74d6b80cdc1169256
tree038c56052d3dca3ba9398252bde6af19076eb848
parent936a1b573b6a0040915eab7cf4b9ae3a43e9169a
Don't internalize all but main by default.

This is mostly a cleanup, but it changes a fairly old behavior.

Every "real" LTO user was already disabling the silly internalize pass
and creating the internalize pass itself. The difference with this
patch is for "opt -std-link-opts" and the C api.

Now to get a usable behavior out of opt one doesn't need the funny
looking command line:

opt -internalize -disable-internalize -internalize-public-api-list=foo,bar -std-link-opts

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214919 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/PassManagerBuilder.h
lib/LTO/LTOCodeGenerator.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp
test/Other/link-opts.ll [deleted file]
tools/bugpoint/bugpoint.cpp
tools/opt/opt.cpp