Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Improve support for non-virtual 'this' pointer adjustments. With this, it ↵ | Anders Carlsson | 2010-02-14 | 1 | -27/+41 | |
| | | | | | | should be possible to use the new vtable layout code for all class hierarchies that do not involve virtual bases. llvm-svn: 96137 | |||||
* | Add basic support for simple non-virtual 'this' pointer adjustments. | Anders Carlsson | 2010-02-13 | 1 | -5/+85 | |
| | | | | llvm-svn: 96136 | |||||
* | Add support for very simple non-virtual this adjustments in the ↵ | Anders Carlsson | 2010-02-13 | 1 | -17/+68 | |
| | | | | | | FinalOverriders class. llvm-svn: 96133 | |||||
* | Cleanup; remove some duplicated code. | Anders Carlsson | 2010-02-13 | 1 | -96/+4 | |
| | | | | llvm-svn: 96131 | |||||
* | Assert if we encounter this adjustments. | Anders Carlsson | 2010-02-13 | 1 | -2/+9 | |
| | | | | llvm-svn: 96125 | |||||
* | Start laying out secondary vtables. | Anders Carlsson | 2010-02-13 | 1 | -10/+17 | |
| | | | | llvm-svn: 96123 | |||||
* | Merge base offsets and dump them. | Anders Carlsson | 2010-02-13 | 1 | -6/+42 | |
| | | | | llvm-svn: 96121 | |||||
* | Don't make return adjustments for pure virtual member functions. | Anders Carlsson | 2010-02-13 | 1 | -5/+8 | |
| | | | | llvm-svn: 96120 | |||||
* | Handle virtual bases in return adjustment types. | Anders Carlsson | 2010-02-13 | 1 | -17/+37 | |
| | | | | llvm-svn: 96119 | |||||
* | Handle virtual bases in ComputeBaseOffset. | Anders Carlsson | 2010-02-13 | 1 | -10/+27 | |
| | | | | llvm-svn: 96117 | |||||
* | More work on covariant return types. We now handle non-virtual adjustments fine. | Anders Carlsson | 2010-02-13 | 1 | -27/+96 | |
| | | | | llvm-svn: 96114 | |||||
* | Emit the 'alignstack' LLVM function attribute when we encounter a function | Charles Davis | 2010-02-13 | 1 | -0/+17 | |
| | | | | | | | marked 'force_align_arg_pointer'. Almost there; now all I need to do is finish up the backend. llvm-svn: 96100 | |||||
* | Fix think-o, attributes can't come *within* the type of the variable. | Chandler Carruth | 2010-02-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 96099 | |||||
* | Silence unused variable warning in a build without assertions. | Chandler Carruth | 2010-02-13 | 1 | -1/+2 | |
| | | | | llvm-svn: 96098 | |||||
* | Remove dead {include, semicolon, variable}. | Benjamin Kramer | 2010-02-13 | 1 | -5/+1 | |
| | | | | llvm-svn: 96087 | |||||
* | Use a different name for this iterator. MSVC and clang++ didn't like "I" in ↵ | Benjamin Kramer | 2010-02-13 | 1 | -3/+3 | |
| | | | | | | the same scope twice. llvm-svn: 96086 | |||||
* | More work on return type adjustments in the new vtable builder. | Anders Carlsson | 2010-02-13 | 1 | -34/+155 | |
| | | | | llvm-svn: 96070 | |||||
* | Switch the standard DeclarationName comparator to be a tri-valued comparator. | John McCall | 2010-02-13 | 1 | -4/+5 | |
| | | | | | | | Use that while fixing a nasty misuse of qsort in vtable codegen which, somehow, has not actually caused a crash. llvm-svn: 96062 | |||||
* | if-0 out printf. | Eli Friedman | 2010-02-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 96052 | |||||
* | Fix a refacto that broke the clang-on-clang build. | Anders Carlsson | 2010-02-12 | 1 | -7/+1 | |
| | | | | llvm-svn: 95994 | |||||
* | Start stubbing out more of the covariant thunk support. | Anders Carlsson | 2010-02-12 | 1 | -10/+20 | |
| | | | | llvm-svn: 95990 | |||||
* | Keep track of whether a final overrider needs a return type adjustment. | Anders Carlsson | 2010-02-12 | 1 | -5/+26 | |
| | | | | llvm-svn: 95985 | |||||
* | Move overrider out into a separate struct. | Anders Carlsson | 2010-02-12 | 1 | -13/+25 | |
| | | | | llvm-svn: 95984 | |||||
* | Keep track of the address points for all primary bases, and add the ability ↵ | Anders Carlsson | 2010-02-12 | 1 | -11/+48 | |
| | | | | | | to dump multiple address points for a single offset. llvm-svn: 95970 | |||||
* | Fix a bug causing an assertion when a covariant return type differed from | John McCall | 2010-02-12 | 1 | -9/+12 | |
| | | | | | | an overriden type only by reduced qualification. llvm-svn: 95968 | |||||
* | More work on vtable layout. We can now layout vtables with primary bases. | Anders Carlsson | 2010-02-12 | 1 | -52/+138 | |
| | | | | llvm-svn: 95965 | |||||
* | When dumping vtables, dump whether a virtual member function is pure or not. | Anders Carlsson | 2010-02-12 | 1 | -1/+9 | |
| | | | | llvm-svn: 95963 | |||||
* | 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 |