Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | More work on the final overriders. | Anders Carlsson | 2010-02-12 | 1 | -10/+130 | |
| | | | | llvm-svn: 95954 | |||||
* | Do not ignore anonymous records. | Devang Patel | 2010-02-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 95953 | |||||
* | Cache new compile unit. | Devang Patel | 2010-02-12 | 1 | -1/+8 | |
| | | | | llvm-svn: 95952 | |||||
* | Stub out the final overriders class. | Anders Carlsson | 2010-02-11 | 1 | -1/+128 | |
| | | | | llvm-svn: 95922 | |||||
* | Use getAs instead of cast/dyn_cast on types. (I'm sure Doug will appreciate ↵ | Anders Carlsson | 2010-02-11 | 1 | -6/+6 | |
| | | | | | | this). llvm-svn: 95911 | |||||
* | Move two functions to the top. No functionality change. | Anders Carlsson | 2010-02-11 | 1 | -77/+77 | |
| | | | | llvm-svn: 95908 | |||||
* | More vtable layout dumper improvements. Handle destructors, dump the ↵ | Anders Carlsson | 2010-02-11 | 2 | -14/+62 | |
| | | | | | | complete function type of the member functions (using PredefinedExpr::ComputeName. llvm-svn: 95887 | |||||
* | Keep track of, and dump, vtable address points. | Anders Carlsson | 2010-02-11 | 1 | -2/+33 | |
| | | | | llvm-svn: 95874 | |||||
* | Check in the beginnings of my new vtable layout builder idea. | Anders Carlsson | 2010-02-11 | 1 | -8/+208 | |
| | | | | | | | | Right now, it's off by default but can be tested by passing -fdump-vtable-layouts to clang -cc1. This option will cause all vtables that will normally be emitted as part of codegen to also be dumped using the new layout code. I've also added a very simple new vtable layout test case. llvm-svn: 95865 | |||||
* | Remove use of 'std::string' from Attr objects, using instead a byte | Ted Kremenek | 2010-02-11 | 1 | -2/+2 | |
| | | | | | | | | | array allocated using the allocator in ASTContext. This addresses these strings getting leaked when using a BumpPtrAllocator (in ASTContext). Fixes: <rdar://problem/7636765> llvm-svn: 95853 | |||||
* | Eliminate a bunch of unnecessary ASTContexts from members functions of | Douglas Gregor | 2010-02-11 | 1 | -2/+2 | |
| | | | | | | Decl subclasses. No functionality change. llvm-svn: 95841 | |||||
* | Eliminate the ASTContext parameter from RecordDecl::getDefinition() | Douglas Gregor | 2010-02-11 | 1 | -1/+1 | |
| | | | | | | | and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836 | |||||
* | Generate the objc_read_weak API when calling | Fariborz Jahanian | 2010-02-10 | 1 | -1/+16 | |
| | | | | | | a __weak block. Fixes radar 7628591. llvm-svn: 95822 | |||||
* | hopefully silence a warning on the clang-i386-darwin9 tester. | Chris Lattner | 2010-02-10 | 1 | -1/+1 | |
| | | | | llvm-svn: 95812 | |||||
* | Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixes | Daniel Dunbar | 2010-02-10 | 2 | -6/+3 | |
| | | | | | | | calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787 | |||||
* | Refactor code that generates debug info for variables that has BlocksAttr. | Devang Patel | 2010-02-10 | 2 | -245/+129 | |
| | | | | llvm-svn: 95786 | |||||
* | Use current location as the location of compiler generated arguments, e.g. ↵ | Devang Patel | 2010-02-10 | 1 | -8/+10 | |
| | | | | | | self, _cmd etc. llvm-svn: 95743 | |||||
* | StringRefize two random methods, remove a dead variable and a weird ↵ | Benjamin Kramer | 2010-02-09 | 1 | -6/+5 | |
| | | | | | | | | constructor call. This maybe fixes some of the errors GCC 4.5 gives on this code. llvm-svn: 95684 | |||||
* | Fix virtual bases' debug info. | Devang Patel | 2010-02-09 | 1 | -2/+4 | |
| | | | | llvm-svn: 95678 | |||||
* | Mark implicit "this" argument as an artificial argument. | Devang Patel | 2010-02-09 | 1 | -1/+4 | |
| | | | | llvm-svn: 95673 | |||||
* | IRgen: Add CreateMemTemp, for creating an temporary memory object for a ↵ | Daniel Dunbar | 2010-02-09 | 8 | -49/+51 | |
| | | | | | | | | | | particular type, and flood fill. - CreateMemTemp sets the alignment on the alloca correctly, which fixes a great many places in IRgen where we were doing the wrong thing. - This fixes many many more places than the test case, but my feeling is we need to audit alignment systematically so I'm not inclined to try hard to test the individual fixes in this patch. If this bothers you, patches welcome! PR6240. llvm-svn: 95648 | |||||
* | Pass inline keyword to optimizer as the new InlineHint function attribute. | Jakob Stoklund Olesen | 2010-02-09 | 1 | -0/+10 | |
| | | | | | | | | | | At the moment the inlinehint attribute is ignored by the Inliner unless you pass a -respect-inlinehint option. This will soon be the default. The inlinehint attribute is set if the inline keyword is explicitly specified on any declaration. llvm-svn: 95623 | |||||
* | Reapply r95393, without the change to CGExpr. I was wrong in assuming that the | Daniel Dunbar | 2010-02-08 | 3 | -19/+14 | |
| | | | | | | element type always matched the converted LLVM type for ExprType. llvm-svn: 95596 | |||||
* | Emit global references with constant initializers as constants. Fixes PR5585. | John McCall | 2010-02-08 | 1 | -1/+1 | |
| | | | | | | | The standard actually says that such references should have internal linkage, but gcc doesn't do that, so we probably can't get away with it. llvm-svn: 95577 | |||||
* | Make sure to set vtable pointers in the destructors as well. | Anders Carlsson | 2010-02-07 | 3 | -1/+4 | |
| | | | | llvm-svn: 95525 | |||||
* | Use the right type when taking the address of a non-virtual member function ↵ | Anders Carlsson | 2010-02-07 | 2 | -3/+11 | |
| | | | | | | pointer. Fixes PR6258. llvm-svn: 95524 | |||||
* | Use the right linkage for static variables inside C++ inline functions. | Anders Carlsson | 2010-02-07 | 2 | -7/+21 | |
| | | | | llvm-svn: 95512 | |||||
* | Improved handling of the visibility attribute. Declarations now inherit ↵ | Anders Carlsson | 2010-02-07 | 1 | -0/+4 | |
| | | | | | | | | their parent's visibility. (This is kind of a risky change, but I did a self-host build and everything appears to work fine!) llvm-svn: 95511 | |||||
* | Make EmitStartEHSpec and EmitEndEHSpec return early when exceptions are ↵ | Anders Carlsson | 2010-02-06 | 1 | -0/+6 | |
| | | | | | | disabled. llvm-svn: 95509 | |||||
* | Add support for threadsafe statics, and make them the default (matching gcc). | Anders Carlsson | 2010-02-06 | 1 | -22/+85 | |
| | | | | | | Daniel, I'd appreciate a review of the driver/cc1 parts. llvm-svn: 95508 | |||||
* | Call destructors for constructed bases as well. | Anders Carlsson | 2010-02-06 | 1 | -0/+13 | |
| | | | | llvm-svn: 95502 | |||||
* | If a constructor throws an exception we need to execute the destructors for ↵ | Anders Carlsson | 2010-02-06 | 1 | -0/+19 | |
| | | | | | | all fully constructed members. Fixes ctor_dtor_count.cpp in the test suite. llvm-svn: 95501 | |||||
* | Switch CodeGen's "is this variable declaration a definition?" logic | Douglas Gregor | 2010-02-06 | 1 | -14/+1 | |
| | | | | | | | | | over to VarDecl::isThisDeclarationADefinition(), which handles variables declared with linkage specifications better (among other things). CMake 2.9 (from CVS) now builds with clang++ and is somewhat functional. llvm-svn: 95486 | |||||
* | Only append 'L' for internal variable declarations, not all declarations. ↵ | Anders Carlsson | 2010-02-06 | 1 | -3/+4 | |
| | | | | | | (Found by the mangle checker, yay) llvm-svn: 95485 | |||||
* | Remove unused variable. | Ted Kremenek | 2010-02-06 | 1 | -1/+0 | |
| | | | | llvm-svn: 95476 | |||||
* | Use the correct function info for constructors when applying function ↵ | Anders Carlsson | 2010-02-06 | 5 | -6/+26 | |
| | | | | | | attributes. Fixes PR6245. llvm-svn: 95474 | |||||
* | Assert when we try to mangle a dependent template name, rather than | Douglas Gregor | 2010-02-06 | 1 | -1/+3 | |
| | | | | | | crashing unceremoniously. llvm-svn: 95464 | |||||
* | Rearrange some checks to avoid call to isCopyConstructor() and clarify path | John McCall | 2010-02-06 | 1 | -12/+14 | |
| | | | | | | taken for non-trivial constructors. llvm-svn: 95457 | |||||
* | Standardize the parsing of function type attributes in a way that | John McCall | 2010-02-05 | 13 | -94/+140 | |
| | | | | | | | | | | | | follows (as conservatively as possible) gcc's current behavior: attributes written on return types that don't apply there are applied to the function instead, etc. Only parse CC attributes as type attributes, not as decl attributes; don't accepet noreturn as a decl attribute on ValueDecls, either (it still needs to apply to other decls, like blocks). Consistently consume CC/noreturn information throughout codegen; enforce this by removing their default values in CodeGenTypes::getFunctionInfo(). llvm-svn: 95436 | |||||
* | Revert r95393, which broke Clang's self-host. | Douglas Gregor | 2010-02-05 | 3 | -14/+22 | |
| | | | | llvm-svn: 95430 | |||||
* | Implement name mangling for template template parameters | Douglas Gregor | 2010-02-05 | 1 | -2/+15 | |
| | | | | llvm-svn: 95427 | |||||
* | IRgen: A few more ConvertType cleanups. | Daniel Dunbar | 2010-02-05 | 1 | -11/+6 | |
| | | | | llvm-svn: 95423 | |||||
* | IRgen: Factor out EmitAggExprToLValue. | Daniel Dunbar | 2010-02-05 | 3 | -14/+20 | |
| | | | | llvm-svn: 95416 | |||||
* | Fix a code gen bug accessing 'isa' field via a message call | Fariborz Jahanian | 2010-02-05 | 1 | -5/+14 | |
| | | | | | | (Fixes radar 7609722). llvm-svn: 95406 | |||||
* | IRgen: Fix some CreateTempAlloca calls to use ConvertTypeForMem when that is | Daniel Dunbar | 2010-02-05 | 4 | -6/+9 | |
| | | | | | | conceptually correct. Review appreciated (Chris, Eli, Anders). llvm-svn: 95401 | |||||
* | Fix the bug that was breaking self-host, and re-land the static ctor fixes. | Anders Carlsson | 2010-02-05 | 1 | -1/+12 | |
| | | | | llvm-svn: 95400 | |||||
* | Now that we store calling conventions in the types, use them instead of | Charles Davis | 2010-02-05 | 1 | -6/+10 | |
| | | | | | | | getting the calling convention from the target function, which may or may not exist. Fixes PR5280. llvm-svn: 95399 | |||||
* | IRgen: Use hasAggregateLLVMType instead of isSingleValueType() for cases that | Daniel Dunbar | 2010-02-05 | 3 | -22/+14 | |
| | | | | | | | | need to deal with aggregates specially; this is consistent with the rest of IRgen. Also, simplify EmitParmDecl and don't worry about using Decl::getNameAsString. llvm-svn: 95393 | |||||
* | Revert r95363 and r95375, which broke self-host. | Douglas Gregor | 2010-02-05 | 1 | -11/+1 | |
| | | | | llvm-svn: 95389 | |||||
* | Check in a mangle checker that's turned off by default. | Anders Carlsson | 2010-02-05 | 1 | -0/+18 | |
| | | | | llvm-svn: 95377 |