- Dec 13, 2008
-
-
Anders Carlsson authored
Store the size of the EH stack inside each BreakContinue struct so we know when a break/continue won't cross a try block. llvm-svn: 60998
-
Fariborz Jahanian authored
matching the storage layout for this ivar llvm-svn: 60996
-
- Dec 09, 2008
-
-
Fariborz Jahanian authored
the synthesis is in an implementation of s subclass of a super class where the property has been declared. llvm-svn: 60792
-
Fariborz Jahanian authored
llvm-svn: 60729
-
- Nov 26, 2008
-
-
Fariborz Jahanian authored
llvm-svn: 60122
-
- Nov 25, 2008
-
-
Daniel Dunbar authored
llvm-svn: 60051
-
- Nov 22, 2008
-
-
Fariborz Jahanian authored
llvm-svn: 59886
-
Fariborz Jahanian authored
Issuing diagnostics when assigning to read-only properties. This is work in progress. llvm-svn: 59874
-
- Nov 21, 2008
-
-
Fariborz Jahanian authored
code gen. method. llvm-svn: 59767
-
- Nov 20, 2008
-
-
Chris Lattner authored
from Sebastian to enforce that a literal string is passed in, and use this to avoid having to call strlen on it. llvm-svn: 59706
-
- Nov 19, 2008
-
-
Chris Lattner authored
llvm-svn: 59611
-
Chris Lattner authored
llvm-svn: 59610
-
- Nov 18, 2008
-
-
Chris Lattner authored
are formed. In particular, a diagnostic with all its strings and ranges is now packaged up and sent to DiagnosticClients as a DiagnosticInfo instead of as a ton of random stuff. This has the benefit of simplifying the interface, making it more extensible, and allowing us to do more checking for things like access past the end of the various arrays passed in. In addition to introducing DiagnosticInfo, this also substantially changes how Diagnostic::Report works. Instead of being passed in all of the info required to issue a diagnostic, Report now takes only the required info (a location and ID) and returns a fresh DiagnosticInfo *by value*. The caller is then free to stuff strings and ranges into the DiagnosticInfo with the << operator. When the dtor runs on the DiagnosticInfo object (which should happen at the end of the statement), the diagnostic is actually emitted with all of the accumulated information. This is a somewhat tricky dance, but it means that the accumulated DiagnosticInfo is allowed to keep pointers to other expression temporaries without those pointers getting invalidated. This is just the minimal change to get this stuff working, but this will allow us to eliminate the zillions of variant "Diag" methods scattered throughout (e.g.) sema. For example, instead of calling: Diag(BuiltinLoc, diag::err_overload_no_match, typeNames, SourceRange(BuiltinLoc, RParenLoc)); We will soon be able to just do: Diag(BuiltinLoc, diag::err_overload_no_match) << typeNames << SourceRange(BuiltinLoc, RParenLoc)); This scales better to support arbitrary types being passed in (not just strings) in a type-safe way. Go operator overloading?! llvm-svn: 59502
-
- Nov 15, 2008
-
-
Chris Lattner authored
Patch by Fariborz! llvm-svn: 59377
-
- Nov 12, 2008
-
-
Daniel Dunbar authored
- EmitStmt is no longer required to finish with a current insertion point defined (i.e. it does not need to make dummy blocks). Instead, it can clear the insertion point in the builder which indicates that the current insertion point is unreachable. - CodeGenFunction provides HaveInsertPoint and EnsureInsertPoint which respectively test if there is an insert point and ensure an insertion point exists (by making a dummy block). - Clearly mark functions in CodeGenFunction which can be called with no insertion point defined. Currently this is a limited set, and EmitStmt simply EnsureInsertPoint()s before emitting subsequent IR. Remove EmitDummyBlock, which is no longer needed. Clients who haven't already cleared the insertion point (typically via EmitBranch) can do so by hand. Remove isDummyBlock, which has effectively been renamed to HaveInsertPoint. The main thrust of this change is that we no longer have create dummy blocks just to destroy them a short time later in EmitBlock in the common case that there is no unreachable code following something like a goto. Additionally, this means that we are not using the hokey condition in isDummyBlock that a block without a name is a dummy block. Guess how well that works when we never emit block names! llvm-svn: 59089
-
- Nov 11, 2008
-
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 59017
-
- Nov 04, 2008
-
-
Douglas Gregor authored
Add a new expression class, ObjCSuperExpr, to handle the Objective-C 'super'. Remove ObjCThis from PredefinedExpr llvm-svn: 58698
-
- Oct 18, 2008
-
-
Daniel Dunbar authored
for Obj-C methods. llvm-svn: 57769
-
- Oct 12, 2008
-
-
Chris Lattner authored
llvm-svn: 57392
-
- Oct 06, 2008
-
-
Ted Kremenek authored
Use DeclStmt::getSolitaryDecl() instead of DeclStmt::getDecl() when processing the Decl of an Objective-C foreach statement. llvm-svn: 57209
-
- Sep 24, 2008
-
-
Daniel Dunbar authored
llvm-svn: 56547
-
Daniel Dunbar authored
Also, "simple" getter synthesis no longer uses temporary AST objects. llvm-svn: 56544
-
- Sep 11, 2008
-
-
Anders Carlsson authored
llvm-svn: 56102
-
Anders Carlsson authored
llvm-svn: 56101
-
- Sep 10, 2008
-
-
Daniel Dunbar authored
StartObjCMethod. llvm-svn: 56030
-
- Sep 09, 2008
-
-
Daniel Dunbar authored
- For the time being this means our emitted code is somewhat worse, especially for aggregates. This will be fixed. llvm-svn: 56013
-
Anders Carlsson authored
llvm-svn: 55983
-
Daniel Dunbar authored
- Add CodeGenFunction::EmitAnyExprToTemp o Like EmitAnyExpr, but emits aggregates to a temporary location if none is available. Seems like this should be simpler (even aside from using first class aggregates). - Killed CodeGenFunction::EmitCallArg (just append the pair) - Conversion of RValues to actual call arguments is now isolated in CodeGenFunction::EmitCall. llvm-svn: 55970
-
- Sep 05, 2008
-
-
Daniel Dunbar authored
llvm-svn: 55812
-
- Sep 04, 2008
-
-
Daniel Dunbar authored
- Patch via Thomas Clement, thanks! llvm-svn: 55804
-
- Sep 03, 2008
-
-
Daniel Dunbar authored
uses which refer to methods not properties. - Not yet wired in Sema. llvm-svn: 55681
-
- Aug 31, 2008
-
-
Anders Carlsson authored
llvm-svn: 55583
-
Anders Carlsson authored
llvm-svn: 55580
-
- Aug 30, 2008
-
-
Anders Carlsson authored
Add CodeGenFunction::EmitMemSetToZero and make AggExprEmitter::EmitAggregateClear use it. llvm-svn: 55573
-
Daniel Dunbar authored
- Change Obj-C runtime message API, drop the ObjCMessageExpr arg in favor of just result type and selector. Necessary so it can be reused in situations where we don't want to cons up an ObjCMessageExpr. - Update aggregate binary assignment to know about special property ref lvalues. - Add CodeGenFunction::EmitCallArg overload which takes an already emitted rvalue. Add CodeGenFunction::StoreComplexIntoAddr. Disabled logic in Sema for parsing Objective-C dot-syntax that accesses methods. This code does not search in the correct order and the AST node has no way of properly representing its results. Updated StmtDumper to print a bit more information about ObjCPropertyRefExprs. llvm-svn: 55561
-
Daniel Dunbar authored
- Added CodeGenFunction::EmitCall which just takes the callee, return type, and a list of (Value*,QualType) pairs. - Added CodeGenFunction::EmitCallArg which handles emitting code for a call argument and turning it into an appropriate (Value*,QualType) pair. - Changed Objective-C runtime interface so that the actual emission of arguments for message sends is (once again) done in the code to emit a message send. No intended functionality change, this is prep work for better ABI support and for Objective-C property setter support. llvm-svn: 55560
-
- Aug 29, 2008
-
-
Daniel Dunbar authored
Objective-C property references. - This handles property references "more correctly" but setters still don't work. llvm-svn: 55534
-
- Aug 27, 2008
-
-
Daniel Dunbar authored
llvm-svn: 55410
-
- Aug 26, 2008
-
-
Daniel Dunbar authored
- Only supports simple assignment and atomic semantics are ignored. - Not quite usable yet because the methods do not actually get added to the class metadata. - Added ObjCPropertyDecl::getSetterKind (one of Assign, Copy, Retain). - Rearrange CodeGenFunction so synthesis can reuse function prolog / epilog code. llvm-svn: 55365
-
- Aug 25, 2008
-
-
Daniel Dunbar authored
- NeXT loads the super class at runtime; this required changing the runtime interface to pass more information down. llvm-svn: 55307
-