]> granicus.if.org Git - clang/commit
[CodeGen][ObjC] Remove the leading `l_` from ObjC symbols and make
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 9 May 2019 17:43:52 +0000 (17:43 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 9 May 2019 17:43:52 +0000 (17:43 +0000)
commitf96304e9cc68947ab821b64c7cea761d9f956b87
tree5d9007692272e81f6e44d1206f8b7ebe4c095b64
parentf0b138aae25b684d4117897609e61e451685ee3e
[CodeGen][ObjC] Remove the leading `l_` from ObjC symbols and make
private symbols in the __DATA segment internal.

This prevents the linker from removing the symbol names. Keeping the
symbols visible enables tools to collect various information about the
symbols, for example, tools that discover whether or not a symbol gets
dirtied.

rdar://problem/48887111

Differential Revision: https://reviews.llvm.org/D61454

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360359 91177308-0d34-0410-b5e6-96231b3b80d8
24 files changed:
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/arc.m
test/CodeGenObjC/boxing.m
test/CodeGenObjC/exceptions-asm-attribute.m
test/CodeGenObjC/externally-initialized-selectors.m
test/CodeGenObjC/forward-protocol-metadata-symbols.m
test/CodeGenObjC/instance-method-metadata.m
test/CodeGenObjC/interface-layout-64.m
test/CodeGenObjC/metadata-class-properties.m
test/CodeGenObjC/metadata-symbols-32.m
test/CodeGenObjC/metadata-symbols-64.m
test/CodeGenObjC/metadata_symbols.m
test/CodeGenObjC/mrc-weak.m
test/CodeGenObjC/non-lazy-classes.m
test/CodeGenObjC/private-extern-selector-reference.m
test/CodeGenObjC/property-category-impl.m
test/CodeGenObjC/property-list-in-class.m
test/CodeGenObjC/property-list-in-extension.m
test/CodeGenObjC/protocol-comdat.m
test/CodeGenObjC/protocols.m
test/CodeGenObjC/section-name.m
test/CodeGenObjC/sections.m
test/CodeGenObjCXX/externally-initialized-selectors.mm
test/CodeGenObjCXX/mrc-weak.mm