- Dec 24, 2009
-
-
Douglas Gregor authored
Assert that we aren't trying to push the same C++ temporary onto the live temporary stack twice. A little insurance against PR5867 surprising us again llvm-svn: 92132
-
Mike Stump authored
llvm-svn: 92123
-
Mike Stump authored
llvm-svn: 92122
-
Mike Stump authored
Refine codegen for visibility and hidden. WIP. llvm-svn: 92118
-
David Chisnall authored
This fixes throwing exceptions inside @catch blocks nested inside outer @try blocks and also fixes jumping from an inner @finally to an outer @finally (via any relevant @catch blocks). The code exhibiting this bug was based on code from CGObjCMac. I believe that this bug may still be present on the Mac runtimes, although the test case in the bug contains a few GNUisms and won't compile without some minor tweaks with Apple's libobjc. llvm-svn: 92117
-
Mike Stump authored
llvm-svn: 92109
-
- Dec 23, 2009
-
-
Mike Stump authored
llvm-svn: 92072
-
Anders Carlsson authored
llvm-svn: 92069
-
Douglas Gregor authored
that this is true when mangling, then fix up the various places in Sema and/or CodeGen that need to remove qualifiers. Addresses a linking issue when building LLVM with Clang. llvm-svn: 92064
-
Chris Lattner authored
llvm-svn: 92057
-
Chris Lattner authored
error_unsupported on test10 and crashed on test11. llvm-svn: 92056
-
Anders Carlsson authored
llvm-svn: 92030
-
Eric Christopher authored
only takes a boolean second argument now. Update tests accordingly. Currently the builtin still accepts the full range for compatibility. llvm-svn: 91983
-
- Dec 22, 2009
-
-
Ken Dyck authored
avoid #including CharUnits.h in ASTContext.h. llvm-svn: 91903
-
Anders Carlsson authored
Make sure that we mangle overloaded operators that are member functions correctly, giving them the correct arity. With this seemingly insignificant fix, we are now able to build and link clang using clang itself! (LLVM still has to be built with gcc for the time being). llvm-svn: 91893
-
Daniel Dunbar authored
integer. - This is consistent, but may not be correct. I will revisit x86_64 ABI handling for C++ as a whole at some point. - PR5831. llvm-svn: 91874
-
Douglas Gregor authored
Eliminate the ASTContext argument to CXXConstructorDecl::isCopyConstructor, since the context is available in the Decl llvm-svn: 91862
-
- Dec 21, 2009
-
-
Douglas Gregor authored
recursing in CGDebugInfo::CreateTypeNode, teach CanonicalizeTypeForDebugInfo---now called UnwrapTypeForDebugInfo---to keep unwrapping the type until we hit something that can be represented by debug information. Thanks to Anders for pointing this out! llvm-svn: 91840
-
Douglas Gregor authored
ElaboratedType, QualifiedNameType, and SubstTemplateTypeParmType type nodes. Also, produce an "unsupported" diagnostic for C++0x type nodes and "typeof" nodes, rather than asserting nondescriptly. llvm-svn: 91837
-
Anders Carlsson authored
llvm-svn: 91805
-
Anders Carlsson authored
llvm-svn: 91804
-
- Dec 20, 2009
-
-
Anders Carlsson authored
Rework the way pointer types are handled by the RTTI builder. We now get the right linkage for indirect pointers to incomplete structs. llvm-svn: 91799
-
- Dec 19, 2009
-
-
Daniel Dunbar authored
would have a higher respect for its own code. This is getting old, is this warning really adding value? llvm-svn: 91779
-
Eli Friedman authored
llvm-svn: 91733
-
Eli Friedman authored
the constructor. This doesn't handle cases requiring the VTT at the moment, and generates unnecessary stores, but I think it's essentially correct. llvm-svn: 91731
-
Eli Friedman authored
llvm-svn: 91725
-
Eli Friedman authored
llvm-svn: 91724
-
- Dec 18, 2009
-
-
Daniel Dunbar authored
llvm-svn: 91714
-
Anders Carlsson authored
llvm-svn: 91695
-
Ken Dyck authored
new opaque value type, CharUnits. This will help us avoid accidentally mixing quantities that are in bit and character units. llvm-svn: 91689
-
Ken Dyck authored
and getTypeSizeInChars() to reflect their basis in character type units, not that of a possibly independent architecture-specific byte. llvm-svn: 91688
-
Anders Carlsson authored
llvm-svn: 91687
-
Anders Carlsson authored
llvm-svn: 91686
-
Douglas Gregor authored
llvm-svn: 91670
-
Douglas Gregor authored
new InitializationSequence. This fixes some bugs (e.g., PR5808), changed some diagnostics, and caused more churn than expected. What's new: - InitializationSequence now has a "C conversion sequence" category and step kind, which falls back to - Changed the diagnostics for returns to always have the result type of the function first and the type of the expression second. CheckSingleAssignmentConstraints to peform checking in C. - Improved ASTs for initialization of return values. The ASTs now capture all of the temporaries we need to create, but intentionally do not bind the tempoary that is actually returned, so that it won't get destroyed twice. - Make sure to perform an (elidable!) copy of the class object that is returned from a class. - Fix copy elision in CodeGen to properly see through the subexpressions that occur with elidable copies. - Give "new" its own entity kind; as with return values and thrown objects, we don't bind the expression so we don't call a destructor for it. Note that, with this patch, I've broken returning move-only types in C++0x. We'll fix it later, when we tackle NRVO. llvm-svn: 91669
-
Daniel Dunbar authored
to compile a translation unit into the debug info for that file. - Used by parts of Darwin build process to check compiler flags, etc. - <rdar://problem/7256886> clang does not emit AT_APPLE_flags llvm-svn: 91661
-
Mike Stump authored
llvm-svn: 91658
-
- Dec 17, 2009
-
-
Anders Carlsson authored
Rename GetAddrOfRTTI to GetAddrOfRTTIDescriptor. Remove the overload that takes a CXXRecordDecl since we were just creating a QualType from it anyway. llvm-svn: 91590
-
Mike Stump authored
llvm-svn: 91588
-
Anders Carlsson authored
llvm-svn: 91585
-