summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOUniversal.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-10-24 20:46:21 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-10-24 20:46:21 +0000
commit0fab40b9150219e224b65d3dfea3aa10c75455c6 (patch)
treec08ffe88f200c9e930071f1f0a2c72a5c0b5266e /llvm/lib/Object/MachOUniversal.cpp
parenta905007f12e8f2f30065d38b80ebd0100f3f39d4 (diff)
downloadbcm5719-llvm-0fab40b9150219e224b65d3dfea3aa10c75455c6.tar.gz
bcm5719-llvm-0fab40b9150219e224b65d3dfea3aa10c75455c6.zip
ELF: Simplify handling of *_start/*_end symbols.
We were previously using the (static) addSynthetic function to create *_start/*_end symbols. This function was doing almost the same thing as addOptionalSynthetic, except that it would also create the symbol in the case where it is unreferenced. Because the symbol has hidden visibility, creating it in that case would have no effect other than adding another entry to the static symbol table. Remove addSynthetic and change callers to use addOptionalSynthetic instead. Differential Revision: https://reviews.llvm.org/D25545 llvm-svn: 285021
Diffstat (limited to 'llvm/lib/Object/MachOUniversal.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud