- Jun 26, 2008
-
-
Chris Lattner authored
llvm-svn: 52764
-
Chris Lattner authored
string to LLVM IR and then regenerating the string from IR. llvm-svn: 52762
-
Chris Lattner authored
calls to getStringValue llvm-svn: 52761
-
Chris Lattner authored
selectors instead of Value*'s. llvm-svn: 52760
-
Chris Lattner authored
llvm-svn: 52759
-
Chris Lattner authored
llvm-svn: 52758
-
Chris Lattner authored
llvm-svn: 52757
-
Chris Lattner authored
instead of passing in just a couple random things it currently happens to use. llvm-svn: 52756
-
Chris Lattner authored
llvm-svn: 52755
-
Chris Lattner authored
llvm-svn: 52753
-
- Jun 25, 2008
-
-
Ted Kremenek authored
Tracked objects now have their type information tracked with them. Enhanced summaries for ObjC methods to include the type information of the receiver. Used the enhanced summaries to support the idiom that NSWindow owns itself (it sends a release message to itself upon close). Added some comments. Did some cleanups with the checker logic using operator overloading (reduced redundant code which I was concerned about being the source of bugs). llvm-svn: 52741
-
Argyrios Kyrtzidis authored
The assert at Sema::ObjCActOnStartOfMethodDef should check CurMethodDecl instead of CurFunctionDecl. llvm-svn: 52719
-
Mon P Wang authored
llvm-svn: 52707
-
Argyrios Kyrtzidis authored
llvm-svn: 52698
-
Argyrios Kyrtzidis authored
The only caller of this knows that the current token is l_brace, so this can be an assert; suggestion by Chris. llvm-svn: 52696
-
Argyrios Kyrtzidis authored
Note that Parser::ParseCXXMemberSpecification is temporarily disabled until the Sema support is in place. Once ParseCXXMemberSpecification is enabled, the Parser/cxx-class.cpp test will pass. llvm-svn: 52694
-
- Jun 24, 2008
-
-
Chris Lattner authored
"Support for Objective-C message sends which return structures. Also includes a small fix for constant string handling that should have been in the last patch (sorry!) and a hook for generating selectors (rest of this implementation to follow in the next patch)." Patch by David Chisnall! llvm-svn: 52681
-
Chris Lattner authored
"This is a small fix for a bug where static object instances were being incorrectly generated. The bug was caused by my inability to read the GNU libobjc source and is only apparent when JITing code (static compilation does not expose the bug due to the data layout of other globals)." Patch by David Chisnall! llvm-svn: 52680
-
Ted Kremenek authored
Update serialization for ObjCMessageExpr to handle additional bit-swizziling of receiver information. llvm-svn: 52679
-
Ted Kremenek authored
ObjCMessageExpr objects that represent messages to class methods now can contain the ObjCInterfaceDecl* of the target class if it was available when the ObjCMessageExpr object was constructed. The original interfaces of the class has been preserved (requiring no functionality changes from clients), but now a "getClasSInfo" method returns both the ObjCInterfaceDecl* and IdentifierInfo* of the target class. llvm-svn: 52676
-
Ted Kremenek authored
llvm-svn: 52668
-
Ted Kremenek authored
llvm-svn: 52667
-
Ted Kremenek authored
Added ObjCSummaryCache, a new summary cache object to cache summaries for Objective-C methods. Instead of mapping from Selectors -> Summaries, we will now map from (ObjCInterfaceDecl*,Selectors) -> Summaries. This will allow more nuanced summary generation. This patch just swaps in the new data structure; the rest of the code works as before by allowing the ObjCInterfaceDecl* to be null. llvm-svn: 52653
-
Ted Kremenek authored
Rename summary methods for "instance methods" to "class methods" (the names got screwed up). No functionality change. llvm-svn: 52650
-
- Jun 23, 2008
-
-
Ted Kremenek authored
The CF retain/release checker now assumes that allocations do not fail. Eventually we will add a flag to the driver to enable allocation failures (documented as a FIXME). llvm-svn: 52632
-
- Jun 22, 2008
-
-
Chris Lattner authored
llvm-svn: 52607
-
- Jun 21, 2008
-
-
Chris Lattner authored
"this patch adds code generation hooks for Objective-C constant strings. It also modifies Sema so that Objective-C constant strings are treated as untyped objects if the interface for the constant string class can not be found. This is consistent with Apple GCC. I thought it was consistent with GNU GCC, since this was causing failures when trying to compile GNUstep with (GNU) GCC, but it appears that this is not the case when attempting to produce a simple test case to demonstrate it. Possibly there is a way of making the error go away, but I haven't found out what it is yet." Patch by David Chisnall! llvm-svn: 52599
-
Chris Lattner authored
by David Chisnall. llvm-svn: 52597
-
Chris Lattner authored
"This moves built-in Objective-C types up the scope chains to where they can be replaced by versions included from the runtime library's headers." This makes it ok to use @"foo" without a declaration for NSConstantString. Patch by David Chisnall! llvm-svn: 52593
-
Chris Lattner authored
Patch by David Chisnall! llvm-svn: 52586
-
Chris Lattner authored
llvm-svn: 52581
-
Chris Lattner authored
Patch by David Chisnall with objc rewriter and stmtdumper updates from me. llvm-svn: 52580
-
Argyrios Kyrtzidis authored
llvm-svn: 52575
-
Ted Kremenek authored
When using the dead-stores checker with the BugReporter class, properly capture the diagnostic associated with a specific warning and emit it. llvm-svn: 52565
-
- Jun 20, 2008
-
-
Ted Kremenek authored
1) Check if a dead store appears as a subexpression. For such cases, we emit a verbose diagnostic so that users aren't confused. This addresses: <rdar://problem/5968508> checker gives misleading report for dead store in loop 2) Don't emit a dead store warning when assigning a null value to a pointer. This is a common form of defensive programming. We may wish to make this an option to the the checker one day. This addresses the feature request in the following email: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-June/001978.html llvm-svn: 52555
-
Ted Kremenek authored
llvm-svn: 52553
-
- Jun 19, 2008
-
-
Mike Stump authored
llvm-svn: 52507
-
Mike Stump authored
Remove an extra space at the end of a line. llvm-svn: 52504
-
Mike Stump authored
I choose to remove extraneous whitespace at end of lines as a semantic nop for the test. llvm-svn: 52503
-
Ted Kremenek authored
have complex RValues yet, so this logic is only fully implemented when __imag__ and __real__ are used on non-complex types. llvm-svn: 52501
-