summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCGNU.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add bitmaps for strong / weak ivar layout (GNUstep runtime).David Chisnall2011-10-041-18/+102
| | | | llvm-svn: 141085
* When performing an @throw in ARC, retain + autoreleaseJohn McCall2011-10-011-1/+1
| | | | | | | the pointer, being sure to do so before running cleanups associated with that full-expression. rdar://10042689 llvm-svn: 140945
* de-tmpify clang.Benjamin Kramer2011-09-271-2/+1
| | | | llvm-svn: 140637
* Switch assert(0/false) llvm_unreachable.David Blaikie2011-09-231-1/+1
| | | | llvm-svn: 140367
* Change "ivar" to true for a boolean function argument. Since string ↵Richard Trieu2011-09-211-2/+3
| | | | | | literals are cast to true, this should no effect on behavior. llvm-svn: 140231
* Switch LangOptions over to a .def file that describes header of theDouglas Gregor2011-09-131-5/+5
| | | | | | | | | | language options. Use that .def file to declare the LangOptions class and initialize all of its members, eliminating a source of annoying initialization bugs. AST serialization changes are next up. llvm-svn: 139605
* switch clang to use the new-new way of creating llvm::StructType's.Chris Lattner2011-08-121-2/+1
| | | | llvm-svn: 137472
* Fix typo so we don't use the wrong function for ending ObjC++ catch blocks ↵David Chisnall2011-08-081-1/+1
| | | | | | (GNU runtimes) llvm-svn: 137052
* Fix linkage type for tentative definition of ivar offset variables (GNUstep ↵David Chisnall2011-08-011-2/+2
| | | | | | runtime) llvm-svn: 136628
* Remove some unnecessary single element array temporaries.Jay Foad2011-07-291-8/+5
| | | | llvm-svn: 136461
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-67/+66
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin.Jordy Rose2011-07-221-14/+10
| | | | | | | | | This was previously not-const only because it has to lazily construct a chain of ivars the first time it is called (and after the chain is invalidated). In practice, all the clients were just const_casting their const Decls; all those now-unnecessary const_casts have been removed. llvm-svn: 135741
* Convert ConstantExpr::getGetElementPtr andJay Foad2011-07-211-5/+5
| | | | | | ConstantExpr::getInBoundsGetElementPtr to use ArrayRef. llvm-svn: 135673
* de-constify llvm::Type, patch by David Blaikie!Chris Lattner2011-07-181-20/+20
| | | | llvm-svn: 135370
* Convert CallInst and InvokeInst APIs to use ArrayRef.Jay Foad2011-07-151-5/+4
| | | | llvm-svn: 135265
* De-constify Types in StructType::get() and TargetData::getIntPtrType().Jay Foad2011-07-111-2/+2
| | | | llvm-svn: 134893
* clang side to match the LLVM IR type system rewrite patch.Chris Lattner2011-07-091-30/+24
| | | | llvm-svn: 134831
* If we're using the pure non-fragile ABI, then skip some of the contortions ↵David Chisnall2011-07-071-9/+30
| | | | | | required to support the transitional ABI. llvm-svn: 134612
* Set a flag to tell the runtime when we're compiling in ARC mode and use the ↵David Chisnall2011-07-071-10/+19
| | | | | | pure-nonfragile ABI for both ARC and GC mode. llvm-svn: 134611
* Add support for weakly imported classes (GNU runtime).David Chisnall2011-06-301-5/+8
| | | | llvm-svn: 134140
* Add ARC support for the GNUstep runtime.David Chisnall2011-06-291-6/+20
| | | | llvm-svn: 134065
* Support for catching objc pointer objects in c++ catch-statementFariborz Jahanian2011-06-231-2/+2
| | | | | | in fragile abi mode and some other cleanups. // rdar://8940528 llvm-svn: 133747
* Alloa catching Objective-C id's being thrown with C++ throwFariborz Jahanian2011-06-221-2/+2
| | | | | | in Darwin's fragile abi mode. // rdar://8940528 llvm-svn: 133639
* Update to match mainline ConstantStruct::get API change. Also, use Chris Lattner2011-06-201-3/+3
| | | | | | | | | | | ConvertType on InitListExprs as they are being converted. This is needed for a forthcoming patch, and improves the IR generated anyway (see additional type names in testcases). This patch also converts a bunch of std::vector's in CGObjCMac to use C arrays. There are a ton more that should be converted as well. llvm-svn: 133413
* update for api change.Chris Lattner2011-06-181-27/+25
| | | | llvm-svn: 133365
* Automatic Reference Counting.John McCall2011-06-151-2/+2
| | | | | | | | | | Language-design credit goes to a lot of people, but I particularly want to single out Blaine Garst and Patrick Beard for their contributions. Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself, in no particular order. llvm-svn: 133103
* Fix another incorrect type bug.David Chisnall2011-05-301-1/+1
| | | | llvm-svn: 132311
* Eliminate temporary argument vectors.Benjamin Kramer2011-05-281-15/+8
| | | | llvm-svn: 132260
* Fix another type mismatch.David Chisnall2011-05-281-2/+2
| | | | llvm-svn: 132259
* Fix missing cast.David Chisnall2011-05-281-5/+7
| | | | llvm-svn: 132258
* Remove bitcast to incorrect type.David Chisnall2011-05-251-1/+1
| | | | llvm-svn: 132077
* Fix bug introduced with r131930.David Chisnall2011-05-231-1/+2
| | | | llvm-svn: 131935
* Don't omit retain / release / autorelease message sends in hybrid GC mode.David Chisnall2011-05-231-2/+2
| | | | llvm-svn: 131932
* Fix some problems where functions must be bitcast but we're expecting a ↵David Chisnall2011-05-231-11/+14
| | | | | | | | llvm::Function of the right type. PR9994. llvm-svn: 131930
* Provide the runtime with information about the GC compile options (GNU runtimes)David Chisnall2011-05-221-4/+18
| | | | llvm-svn: 131877
* Patch to fix IR-gen crash generating structure ABI which implementsFariborz Jahanian2011-05-171-0/+4
| | | | | | | user specified string class via -fconstant-string-class option. pr9914. llvm-svn: 131496
* Simplify code a bit by using CallArgList::add. No intended functionality ↵Eli Friedman2011-05-021-9/+4
| | | | | | change. llvm-svn: 130699
* Remove a dead variable flagged by gcc's -Wunused-but-set-variable. NoNick Lewycky2011-05-021-2/+0
| | | | | | functionality change. llvm-svn: 130672
* Don't crash if the AST doesn't have a sensible ObjC id type.David Chisnall2011-04-291-4/+6
| | | | llvm-svn: 130500
* Remove unused STL header includes.Jay Foad2011-04-231-1/+0
| | | | llvm-svn: 130068
* Replace a couple of literal 8s with ASTContext::getCharWidth(). No change inKen Dyck2011-04-221-4/+8
| | | | | | functionality intended. llvm-svn: 130002
* PR9214: Convert Metadata API to use ArrayRef.Jay Foad2011-04-211-2/+2
| | | | llvm-svn: 129929
* fix a bunch of comment typos found by codespell. Patch byChris Lattner2011-04-151-1/+1
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129559
* Fix copy-and-paste bug that I introduced while tidying up the code.David Chisnall2011-04-051-1/+1
| | | | | | Does anyone want to buy me a new brain? llvm-svn: 128890
* Remove PHINode::reserveOperandSpace(). Instead, add a parameter toJay Foad2011-03-301-8/+4
| | | | | | PHINode::Create() giving the (known or expected) number of operands. llvm-svn: 128538
* (Almost) always call reserveOperandSpace() on newly created PHINodes.Jay Foad2011-03-301-0/+4
| | | | llvm-svn: 128534
* Reformatted doc comments so that they are now difficult to edit in any ↵David Chisnall2011-03-261-339/+186
| | | | | | editor that doesn't have explicit doxygen support, as per LLVM style guidelines. llvm-svn: 128335
* Added some doc comments.David Chisnall2011-03-251-14/+263
| | | | llvm-svn: 128275
* Continuing work on ObjC tidyup:David Chisnall2011-03-251-340/+99
| | | | | | | | | | | | | | | | - Moved the CGObjCRuntime functions out of CGObjCMac.cpp into CGObjCRuntime.cpp - Added generic functions in CGObjCRuntime for emitting @try and @synchronize blocks, usable by any runtime that uses DWARF exceptions. - Made the GNU runtimes use these functions. It should now be possible to replace the equivalent functions in CGObjCNonFragileABIMac with simple calls to these two functions, providing the runtime functions as arguments. I'll post a diff to the list for review before making any changes to the Mac runtime stuff. llvm-svn: 128274
* Fixed type error in last commit (forgot that now that selectors are notDavid Chisnall2011-03-231-147/+199
| | | | | | | | | | | | | accessed via the indirect pointer, they don't need to be pointers to pointers). Finished moving the message lookup code into separate subclasses for each runtime. Also performed a few smallish related tidies. We're now bitcasting the result of the message lookup functions, rather than casting the lookup functions themselves, so the messages.m test needed updating to reflect this. llvm-svn: 128180
OpenPOWER on IntegriCloud