summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* wordsmith an objc warning, rdar://7900756Chris Lattner2010-04-262-2/+2
| | | | llvm-svn: 102388
* Introduce Type::isStructureOrClassType(), which does the obviousDouglas Gregor2010-04-2612-17/+35
| | | | | | | | thing. Audit all uses of Type::isStructure(), changing those calls to isStructureOrClassType() as needed (which is alsmost everywhere). Fixes the remaining failure in Boost.Utility/Swap. llvm-svn: 102386
* Cleanup error recovery for a missing '-'|'+'Fariborz Jahanian2010-04-262-35/+25
| | | | | | on a method declaration (radar 7822196). llvm-svn: 102383
* Implement template instantiation for implicit property references inDouglas Gregor2010-04-263-4/+68
| | | | | | | Objective-C++. This is the last bit of (non-blocks-related) template instantiation logic for Objective-C++. Yay! llvm-svn: 102382
* Implement template instantiation for ObjCPropertyRefExpr.Douglas Gregor2010-04-263-17/+64
| | | | llvm-svn: 102379
* emit dtors with the right calling convention in -fno-use-cxa-atexitChris Lattner2010-04-262-3/+28
| | | | | | mode. llvm-svn: 102377
* Implement template instantiation for value-dependent Objective-C ivarDouglas Gregor2010-04-263-11/+136
| | | | | | | | references and isa expressions. Also, test template instantiation of unresolved member references to Objective-C ivar references and isa expressions. llvm-svn: 102374
* remove alignment specifier on this. CAn't this test be removed yet? :)Chris Lattner2010-04-261-1/+1
| | | | llvm-svn: 102369
* Test case for NeXt's -fno-constant-cfstrings option.Fariborz Jahanian2010-04-261-0/+33
| | | | llvm-svn: 102357
* Implement template instantiation for Objective-C @catchDouglas Gregor2010-04-264-6/+76
| | | | | | statements. This is the last of the Objective-C statements. llvm-svn: 102356
* Refactor Objective-C @catch parameter checking by detangling it fromDouglas Gregor2010-04-266-24/+114
| | | | | | | | function-parameter checking and splitting it into the normal ActOn*/Build* pair in Sema. We now use VarDecl to represent the @catch parameter rather than the ill-fitting ParmVarDecl. llvm-svn: 102347
* Make the static type of the exception variable in an Objective-CDouglas Gregor2010-04-267-16/+16
| | | | | | | @catch a VarDecl. The dynamic type is still a ParmVarDecl, but that will change soon. No effective functionality change. llvm-svn: 102341
* Ensure that we have completed a type before attempting initializationDouglas Gregor2010-04-262-39/+66
| | | | | | on that type. Fixes several problems in Boost.Interprocess. llvm-svn: 102339
* tests: Force a triple.Daniel Dunbar2010-04-261-1/+1
| | | | llvm-svn: 102332
* When name lookup finds a single declaration that was imported via aDouglas Gregor2010-04-253-3/+22
| | | | | | | | using declaration, look at its underlying declaration to determine the lookup result kind (e.g., overloaded, unresolved). Fixes at least one issue in Boost.Bimap. llvm-svn: 102317
* Improve the diagnostic when we find something we did not expect in aDouglas Gregor2010-04-254-18/+18
| | | | | | | member expression (p-> or x.), by showing the type we looked into and what we did actually find. llvm-svn: 102315
* IRgen/NeXT: Fix several alignment issues with Objective-C metadata symbols:Daniel Dunbar2010-04-252-14/+27
| | | | | | | | | - Fix some places that had the alignment hard coded. - Use ABI type alignment, not preferred type alignment -- neither of this is exactly right, as we really want the C type alignment as required by the runtime, but the ABI alignment is a more correct choice. This should be equivalent for x86_64, but fixes the alignment for ARM. llvm-svn: 102314
* tests: Convert test to FileCheck.Daniel Dunbar2010-04-251-20/+23
| | | | llvm-svn: 102313
* IRgen/NeXT: Reuse EmitImageInfo for both fragile and non-fragile ABI. This ↵Daniel Dunbar2010-04-252-34/+17
| | | | | | fixes Clang to correctly emit the "CorrectedSynthesize" bit when using the non-fragile ABI. llvm-svn: 102312
* When performing name lookup for an operator name, be sure to lookDouglas Gregor2010-04-252-4/+26
| | | | | | through using declarations. Fixes ~18 tests in Boost.Fusion. llvm-svn: 102311
* exclude cmake build directories from being installedChris Lattner2010-04-251-0/+1
| | | | | | with "make install". Patch by Michael Forney! llvm-svn: 102299
* Land another cleanup patch.Anders Carlsson2010-04-251-14/+8
| | | | llvm-svn: 102293
* Land this test.Anders Carlsson2010-04-251-1/+16
| | | | llvm-svn: 102292
* Tweak test for destruction of copied temporary objectsDouglas Gregor2010-04-251-0/+1
| | | | llvm-svn: 102291
* When copying a temporary object to initialize an entity for which theDouglas Gregor2010-04-253-3/+27
| | | | | | | temporary needs to be bound, bind the copy object. Otherwise, we won't end up calling the destructor for the copy. Fixes Boost.Optional. llvm-svn: 102290
* Revert enough of my patches to fix self-host again :(Anders Carlsson2010-04-254-71/+102
| | | | llvm-svn: 102289
* When we create a temporary of class type that we don't immediatelyDouglas Gregor2010-04-242-5/+59
| | | | | | | bind, check accessibility of the destructor and mark the declaration as referenced. Fixes a bunch of Boost.Regex failures. llvm-svn: 102287
* Cleanup SynthesizeCXXCopyConstructor.Anders Carlsson2010-04-241-16/+9
| | | | llvm-svn: 102286
* Clean up SynthesizeCXXCopyAssignment a little.Anders Carlsson2010-04-241-15/+11
| | | | llvm-svn: 102285
* RenameGetAddressOfBaseOfCompleteClass to ↵Anders Carlsson2010-04-242-27/+28
| | | | | | GetAddressOfDirectBaseInCompleteClass to reflect that it only handles direct bases. llvm-svn: 102284
* Add an explicit UsuallyTinyPtrVector that takes a single element.Anders Carlsson2010-04-242-4/+5
| | | | llvm-svn: 102283
* More cleanup.Anders Carlsson2010-04-242-27/+18
| | | | llvm-svn: 102282
* Simplify EmitClassMemberwiseCopy now that it's only used for fields.Anders Carlsson2010-04-242-28/+14
| | | | llvm-svn: 102281
* Switch this to new API.Nick Lewycky2010-04-241-1/+1
| | | | llvm-svn: 102280
* DefineImplicitCopyConstructor now uses SetBaseOrMemberInitializers to create ↵Anders Carlsson2010-04-243-31/+30
| | | | | | implicit base initializers. (Member initializers are still handled by CodeGenFunction::SynthesizeCXXCopyConstructor for now). llvm-svn: 102279
* When building implicit base initializers, add a derived-to-base cast that ↵Anders Carlsson2010-04-241-0/+7
| | | | | | points to the exact base specifier. llvm-svn: 102277
* Rename GetAddressOfBaseClass to OldGetAddressOfBaseClass.Anders Carlsson2010-04-242-53/+15
| | | | llvm-svn: 102275
* Get rid of the old GetNonVirtualBaseClassOffset and change all call sites to ↵Anders Carlsson2010-04-245-34/+5
| | | | | | use the new version. llvm-svn: 102274
* Change CodeGenFunction::GetAddressOfDerivedClass to take a BasePath.Anders Carlsson2010-04-245-23/+31
| | | | llvm-svn: 102273
* Convert more call sites over to the new GetAddressOfBaseClass.Anders Carlsson2010-04-243-12/+8
| | | | llvm-svn: 102272
* When we attempt to create a temporary object of class type, be sureDouglas Gregor2010-04-243-2/+23
| | | | | | | | | | that the type we're copying is complete. Boost.Regex now builds, although it's failing its regression tests with our favorite "Sema doesn't consider destructor as used." assertion. llvm-svn: 102271
* Add a new GetAddressOfBaseClass overload that takes a base path and. Use it ↵Anders Carlsson2010-04-243-10/+112
| | | | | | for derived-to-base casts. llvm-svn: 102270
* When we are performing copy initialization of a class type via itsDouglas Gregor2010-04-244-12/+47
| | | | | | | | | | | copy constructor, suppress user-defined conversions on the argument. Otherwise, we can end up in a recursion loop where the bind the argument of the copy constructor to another copy constructor call, whose argument is then a copy constructor call... Found by Boost.Regex which, alas, still isn't building. llvm-svn: 102269
* Headers: Hide intptr_t and uintptr_t definitions behind _INTPTR_T and _UINTPTR_TDaniel Dunbar2010-04-241-0/+7
| | | | | | | | defines, for increased compatibility with Darwin gcc. - This is a bit of a hack, since platform compatibility issues don't belong here, but I don't think this hurts anyone either. llvm-svn: 102264
* Fix pasto, add a comment.Benjamin Kramer2010-04-242-1/+2
| | | | llvm-svn: 102263
* Factor code. No functionality change.Benjamin Kramer2010-04-242-137/+38
| | | | llvm-svn: 102262
* Add base paths for CK_BaseToDerived and CK_BaseToDerivedMemberPointer.Anders Carlsson2010-04-245-21/+32
| | | | llvm-svn: 102261
* Add base paths to CK_UncheckedDerivedToBase and CK_DerivedToBaseMemberPointer.Anders Carlsson2010-04-244-21/+25
| | | | llvm-svn: 102260
* Actually produce base paths for CastExprs of kind CK_DerivedToBase.Anders Carlsson2010-04-2411-61/+140
| | | | llvm-svn: 102259
* Add BasePath arguments to all cast expr constructors.Anders Carlsson2010-04-247-27/+53
| | | | llvm-svn: 102258
OpenPOWER on IntegriCloud