Michael Gottesman
5c2059603c
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.
llvm-svn: 174461
2013-02-05 23:08:45 +00:00
Argyrios Kyrtzidis
da6d7679e8
Add documentation about boxing enum types and a codegen test to make
...
sure we pick up the underlying type, per suggestion by Fariborz.
No functionality change.
llvm-svn: 156851
2012-05-15 20:45:35 +00:00
Argyrios Kyrtzidis
74d7f15aed
Add a test case for going through typedefs until we reach "BOOL", that NSAPI::isObjCTypedef() is doing.
...
llvm-svn: 156604
2012-05-11 01:53:27 +00:00
Argyrios Kyrtzidis
6062da47b8
[objc] When boxing a BOOL/NSInteger/NSUInteger type, use the corresponding
...
numberWithBool:/numberWithInteger:/numberWithUnsignedInteger: NSNumber selectors.
rdar://11428703
llvm-svn: 156583
2012-05-10 23:12:03 +00:00