diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-06 22:15:10 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-06 22:15:10 +0000 |
commit | 060062a433d1c2c5f1f89f6c42858a5d48bef9e1 (patch) | |
tree | 2ee9a296aaf7b4dd183c5ab9c1289362a2a28e4c /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 297febee570230e88334540ce43e7c470d211cbb (diff) | |
download | bcm5719-llvm-060062a433d1c2c5f1f89f6c42858a5d48bef9e1.tar.gz bcm5719-llvm-060062a433d1c2c5f1f89f6c42858a5d48bef9e1.zip |
Use llvm.compiler.used instead of llvm.used for objc symbols.
LLVM currently has a hack (shouldEmitUsedDirectiveFor) that causes it to not
print no_dead_strip for symbols starting with 'l' or 'L'. These are exactly the
ones that the clang's objc codegen is producing. The net result, is that it is
equivalent to llvm.compiler.used.
The need for putting the private symbol in llvm.compiler.used should be clear
(the objc runtime uses them). The reason for also putting the weak symbols in
it is for LTO: ld64 will not ask us to preserve the it.
llvm-svn: 203172
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions