| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
string to LLVM IR and then regenerating the string from IR.
llvm-svn: 52762
|
| |
|
|
|
|
| |
calls to getStringValue
llvm-svn: 52761
|
| |
|
|
|
|
| |
selectors instead of Value*'s.
llvm-svn: 52760
|
| |
|
|
| |
llvm-svn: 52759
|
| |
|
|
| |
llvm-svn: 52758
|
| |
|
|
| |
llvm-svn: 52757
|
| |
|
|
|
|
|
| |
instead of passing in just a couple random things it currently
happens to use.
llvm-svn: 52756
|
| |
|
|
| |
llvm-svn: 52755
|
| |
|
|
|
|
| |
changes in llvm mainline.
llvm-svn: 52753
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
instead of CurFunctionDecl.
llvm-svn: 52719
|
| |
|
|
| |
llvm-svn: 52707
|
| |
|
|
| |
llvm-svn: 52698
|
| |
|
|
|
|
| |
be an assert; suggestion by Chris.
llvm-svn: 52696
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
of receiver information.
llvm-svn: 52679
|
| |
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 52668
|
| |
|
|
| |
llvm-svn: 52667
|
| |
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
got screwed up). No functionality change.
llvm-svn: 52650
|
| |
|
|
|
|
| |
Eventually we will add a flag to the driver to enable allocation failures (documented as a FIXME).
llvm-svn: 52632
|
| |
|
|
| |
llvm-svn: 52607
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
by David Chisnall.
llvm-svn: 52597
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Patch by David Chisnall!
llvm-svn: 52586
|
| |
|
|
| |
llvm-svn: 52581
|
| |
|
|
|
|
| |
Patch by David Chisnall with objc rewriter and stmtdumper updates from me.
llvm-svn: 52580
|
| |
|
|
| |
llvm-svn: 52575
|
| |
|
|
|
|
| |
capture the diagnostic associated with a specific warning and emit it.
llvm-svn: 52565
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
child to parents.
llvm-svn: 52553
|
| |
|
|
| |
llvm-svn: 52507
|
| |
|
|
|
|
| |
Remove an extra space at the end of a line.
llvm-svn: 52504
|
| |
|
|
|
|
|
| |
I choose to remove extraneous whitespace at end of lines as a semantic
nop for the test.
llvm-svn: 52503
|
| |
|
|
|
|
|
| |
have complex RValues yet, so this logic is only fully implemented when __imag__
and __real__ are used on non-complex types.
llvm-svn: 52501
|
| |
|
|
|
|
| |
distinguishes between the cases when we just evaluated the transfer function of a Stmt* (PostStmt) or performed a load (PostLoad). This solves a caching bug observed in a recent bug report.
llvm-svn: 52443
|
| |
|
|
| |
llvm-svn: 52426
|
| |
|
|
|
|
| |
Patch by David Chisnall!
llvm-svn: 52422
|
| |
|
|
|
|
| |
Fix indentation of class declarations in ExprCXX.h
llvm-svn: 52380
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang as a Release build.
The big change is that all AST nodes (subclasses of Stmt) whose children are
Expr* store their children as Stmt* or arrays of Stmt*. This is to remove
strict-aliasing warnings when using StmtIterator. None of the interfaces of any
of the classes have changed (except those with arg_iterators, see below), as the
accessor methods introduce the needed casts (via cast<>). While this extra
casting may seem cumbersome, it actually adds some important sanity checks
throughout the codebase, as clients using StmtIterator can potentially overwrite
children that are expected to be Expr* with Stmt* (that aren't Expr*). The casts
provide extra sanity checks that are operational in debug builds to catch
invariant violations such as these.
For classes that have arg_iterators (e.g., CallExpr), the definition of
arg_iterator has been replaced. Instead of it being Expr**, it is an actual
class (called ExprIterator) that wraps a Stmt**, and provides the necessary
operators for iteration. The nice thing about this class is that it also uses
cast<> to type-checking, which introduces extra sanity checks throughout the
codebase that are useful for debugging.
A few of the CodeGen functions that use arg_iterator (especially from
OverloadExpr) have been modified to take begin and end iterators instead of a
base Expr** and the number of arguments. This matches more with the abstraction
of iteration. This still needs to be cleaned up a little bit, as clients expect
that ExprIterator is a RandomAccessIterator (which we may or may not wish to
allow for efficiency of representation).
This is a fairly large patch. It passes the tests (except CodeGen/bitfield.c,
which was already broken) on both a Debug and Release build, but it should
obviously be reviewed.
llvm-svn: 52378
|
| |
|
|
| |
llvm-svn: 52376
|
| |
|
|
| |
llvm-svn: 52375
|
| |
|
|
|
|
| |
Patch by Nikita Zhuk!
llvm-svn: 52336
|
| |
|
|
|
|
| |
This fixes use of alloca on 64-bit systems.
llvm-svn: 52334
|
| |
|
|
|
|
|
|
|
|
| |
qualifier in the lvalue, and changes lvalue loads/stores to honor
the volatile flag. Places which need some further attention are marked
with FIXMEs.
Patch by Cédric Venet.
llvm-svn: 52264
|
| |
|
|
| |
llvm-svn: 52227
|