Chris Lattner
0e62c1cc0b
remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports
...
them into the clang namespace.
llvm-svn: 135852
2011-07-23 10:55:15 +00:00
Argyrios Kyrtzidis
de223c3a7b
[arcmt] Add weak/unsafe_unretained for "@property (readonly)" when we are @synthesizing it.
...
llvm-svn: 135067
2011-07-13 19:47:57 +00:00
Argyrios Kyrtzidis
c8b3619773
[arcmt] For properties rewrite 'assign' -> 'weak or unsafe_unretained', 'retain' -> 'strong', and add
...
'weak or unsafe_unretained' when 'assign' is missing. rdar://9496219&9602589.
llvm-svn: 135065
2011-07-13 19:22:00 +00:00
Argyrios Kyrtzidis
ce9b739999
[arcmt] Before applying '__weak' check whether the objc class is annotated with objc_arc_weak_reference_unavailable
...
or is in a list of classes not supporting 'weak'.
rdar://9489367.
llvm-svn: 135002
2011-07-12 22:05:17 +00:00
John McCall
24fc0decfe
Change the driver's logic about Objective-C runtimes: abstract out a
...
structure to hold inferred information, then propagate each invididual
bit down to -cc1. Separate the bits of "supports weak" and "has a native
ARC runtime"; make the latter a CodeGenOption.
The tool chain is still driving this decision, because it's the place that
has the required deployment target information on Darwin, but at least it's
better-factored now.
llvm-svn: 134453
2011-07-06 00:26:06 +00:00
Argyrios Kyrtzidis
cff00d9c12
Rename objc_lifetime -> objc_ownership, and modify diagnostics to talk about 'ownership', not 'lifetime'.
...
rdar://9477613.
llvm-svn: 133779
2011-06-24 00:08:59 +00:00
Argyrios Kyrtzidis
e5b475c688
[arcmt] Break apart Transforms.cpp.
...
llvm-svn: 133539
2011-06-21 20:20:39 +00:00