summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-10 00:09:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-10 00:09:35 +0000
commit4d47f7f52bbdcbedd5c59e6076ad68a5312f5898 (patch)
treee91011f51544a2078f0f94faff59f86f6bf9b127 /lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
parent7efbac74ec2932f22ec5134d555ab9141ed8b798 (diff)
downloadbcm5719-llvm-4d47f7f52bbdcbedd5c59e6076ad68a5312f5898.tar.gz
bcm5719-llvm-4d47f7f52bbdcbedd5c59e6076ad68a5312f5898.zip
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. llvm-svn: 223863
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud