]> granicus.if.org Git - clang/commit
Changed CGObjCMac.cpp to add the marker externally_initialized to SELECTOR_REFERENCES...
authorMichael Gottesman <mgottesman@apple.com>
Tue, 5 Feb 2013 23:08:45 +0000 (23:08 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Tue, 5 Feb 2013 23:08:45 +0000 (23:08 +0000)
commit8f98bf94072fcd41f7da1f8e58b7171adc878d51
tree3bf0ed3b1be3c21ab59629ed5ea50ef0a21d1072
parentb1855de3d61eab7d2f2e616ed59195f83e2a6dc0
Changed CGObjCMac.cpp to add the marker externally_initialized to SELECTOR_REFERENCES in both the fragile and non-fragile API.

This is to ensure that GlobalOpt in LLVM does not attempt to look through a
selector reference to a method var name at compile time.

I also added a test/updated old tests that need to recognize the new keyword.

rdar://12580965.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/boxing.m
test/CodeGenObjC/externally-initialized-selectors.m [new file with mode: 0644]
test/CodeGenObjC/metadata-symbols-32.m
test/CodeGenObjC/metadata-symbols-64.m