llvm-6502/tools
Rafael Espindola d3732d9095 Simplify the handling of aliases in the gold plugin.
The complicated situation is when we have to keep an alias but drop a GV
that is part of the aliasee.

We used to clone the dropped GV and make the clone internal. This is wasteful
as we know the original will be dropped.

With this patch what is done instead is set the linkage of the original to
internal and replace all uses (but the one in the alias) with a new
declaration that takes the name of the old GV. This saves us from having
to copy the body.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223863 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-10 00:09:35 +00:00
..
bugpoint
bugpoint-passes
gold Simplify the handling of aliases in the gold plugin. 2014-12-10 00:09:35 +00:00
llc
lli
llvm-ar
llvm-as
llvm-bcanalyzer
llvm-c-test
llvm-config
llvm-cov
llvm-diff
llvm-dis
llvm-dwarfdump
llvm-extract
llvm-go
llvm-jitlistener
llvm-link
llvm-lto
llvm-mc
llvm-mcmarkup
llvm-nm
llvm-objdump
llvm-profdata
llvm-readobj
llvm-rtdyld
llvm-shlib
llvm-size
llvm-stress
llvm-symbolizer
llvm-vtabledump
lto
macho-dump
msbuild
obj2yaml
opt
verify-uselistorder
yaml2obj
CMakeLists.txt
LLVMBuild.txt
Makefile