CodeGen: mark ObjC cstring literals as unnamed_addr
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 Sep 2016 16:12:14 +0000 (16:12 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 18 Sep 2016 16:12:14 +0000 (16:12 +0000)
commit3f307518f8bea834e7ba0fb522e990063d09cfb3
tree58bb96b5a82d0dad24be2a2d7ee92939a55f4579
parent0c54dc862e5c9dae681a43299126376757615cab
CodeGen: mark ObjC cstring literals as unnamed_addr

These are all emitted into a section with a cstring_literal attribute.  The
attribute permits the linker to coalesce the string contents.  The address of
the strings are not important.

llvm-svn: 281855
19 files changed:
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/boxing.m
clang/test/CodeGenObjC/complex-property.m
clang/test/CodeGenObjC/encode-cstyle-method.m
clang/test/CodeGenObjC/encode-test-6.m
clang/test/CodeGenObjC/encode-test.m
clang/test/CodeGenObjC/fragile-arc.m
clang/test/CodeGenObjC/ivar-layout-64.m
clang/test/CodeGenObjC/metadata-symbols-32.m
clang/test/CodeGenObjC/metadata-symbols-64.m
clang/test/CodeGenObjC/nsvalue-objc-boxable-ios-arc.m
clang/test/CodeGenObjC/nsvalue-objc-boxable-ios.m
clang/test/CodeGenObjC/nsvalue-objc-boxable-mac-arc.m
clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
clang/test/CodeGenObjC/objc-asm-attribute-test.m
clang/test/CodeGenObjC/property-list-in-extension.m
clang/test/CodeGenObjC/reorder-synthesized-ivars.m
clang/test/CodeGenObjCXX/encode.mm
clang/test/CodeGenObjCXX/lambda-expressions.mm