Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | Add newline. | Daniel Dunbar | 2010-02-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 96116 | |||||
* | More work on covariant return types. We now handle non-virtual adjustments fine. | Anders Carlsson | 2010-02-13 | 1 | -27/+96 | |
| | | | | llvm-svn: 96114 | |||||
* | add support for t Fedora 12 (February 2010), patch by | Chris Lattner | 2010-02-13 | 1 | -0/+4 | |
| | | | | | | Dyachenko Dmitry. Our system is "not so elegant" here. llvm-svn: 96111 | |||||
* | 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 | |||||
* | Skip implicit instantiation of templated variables where a more recent | Chandler Carruth | 2010-02-13 | 1 | -0/+18 | |
| | | | | | | redeclaration provides an explicit instantiation or is invalid. llvm-svn: 96097 | |||||
* | 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 | |||||
* | Silence a GCC warning about a possibly uninitialized variable. It's data flow | Chandler Carruth | 2010-02-13 | 1 | -1/+1 | |
| | | | | | | only flows so far it seems. llvm-svn: 96085 | |||||
* | Fix a fiendinshly fun little type-canonicalization bug, where we were | Douglas Gregor | 2010-02-13 | 1 | -2/+6 | |
| | | | | | | | | | rebuilding a typename type terminating in a template-id (with dependent template name, naturally) as a TypenameType when, because its context could be fully resolved, we should have been building it as a QualifiedNameType. Fixes PR6268. llvm-svn: 96084 | |||||
* | Permit the use of typedefs of class template specializations in | Douglas Gregor | 2010-02-13 | 1 | -10/+6 | |
| | | | | | | | qualified declarator-ids. This patch is actually due to Cornelius; fixes PR6179. llvm-svn: 96082 | |||||
* | Raise the responsibility for passing -disable-llvm-verifier in NDEBUG builds | John McCall | 2010-02-13 | 2 | -6/+7 | |
| | | | | | | | to the driver, and support it in CodeGenOptsToArgs(). Note that this changes the default behavior of clang -cc1 to always run the verifier. llvm-svn: 96077 | |||||
* | More work on return type adjustments in the new vtable builder. | Anders Carlsson | 2010-02-13 | 1 | -34/+155 | |
| | | | | llvm-svn: 96070 | |||||
* | Enhance RegionStore::InvalidateRegions() to correctly invalidate bindings | Ted Kremenek | 2010-02-13 | 1 | -12/+32 | |
| | | | | | | by scanning through the values of LazyCompoundVals. llvm-svn: 96067 | |||||
* | Switch the standard DeclarationName comparator to be a tri-valued comparator. | John McCall | 2010-02-13 | 2 | -22/+34 | |
| | | | | | | | Use that while fixing a nasty misuse of qsort in vtable codegen which, somehow, has not actually caused a crash. llvm-svn: 96062 | |||||
* | Pull logic for visiting value bindings in InvalidateRegionsWorker into a ↵ | Ted Kremenek | 2010-02-13 | 1 | -20/+28 | |
| | | | | | | | | separate method. No functionality change. llvm-svn: 96060 | |||||
* | Fix for PR6274: teach constant folding to evaluate __builtin_expect. | Eli Friedman | 2010-02-13 | 1 | -2/+5 | |
| | | | | llvm-svn: 96054 | |||||
* | if-0 out printf. | Eli Friedman | 2010-02-13 | 1 | -1/+1 | |
| | | | | llvm-svn: 96052 | |||||
* | Add an option to disable the LLVM verifier pass (which is still always | John McCall | 2010-02-12 | 1 | -1/+1 | |
| | | | | | | | disabled in NDEBUG builds). The option applies only to -cc1 invocations and is: -disable_llvm_verifier llvm-svn: 96046 | |||||
* | Funnel changes to the ImportedDecls list in the ASTImporter through a | Douglas Gregor | 2010-02-12 | 1 | -25/+25 | |
| | | | | | | | single Imported function, in preparation for fixing a serious design flaw. llvm-svn: 96044 | |||||
* | Fix bug I introduced with assinging a temporary to a StringRef. | Ted Kremenek | 2010-02-12 | 2 | -3/+3 | |
| | | | | llvm-svn: 96041 | |||||
* | Make the following functions thread-safe but having them return an ↵ | Ted Kremenek | 2010-02-12 | 1 | -27/+20 | |
| | | | | | | | | | | | | std::string that is reconstructed every time they are called: getClangRevision() getClangFullRepositoryVersion() getClangFullVersion() llvm-svn: 96033 | |||||
* | Implement AST importing and merging for enumeration types and | Douglas Gregor | 2010-02-12 | 1 | -20/+232 | |
| | | | | | | enumerators, along with ImplicitCastExprs to make it work. llvm-svn: 96024 | |||||
* | Complain if block-literal expression's parameter name is | Fariborz Jahanian | 2010-02-12 | 2 | -2/+10 | |
| | | | | | | missing (in c/objc mode). Fixes radar 7528255. llvm-svn: 96017 | |||||
* | Don't error when setting a sub-structure variable via objc properties | Fariborz Jahanian | 2010-02-12 | 1 | -6/+1 | |
| | | | | | | in objective-c++ mode (do it for objective-c only). llvm-svn: 96012 | |||||
* | fix a bug in SourceManager::getInstantiationLocSlowCase, where | Chris Lattner | 2010-02-12 | 1 | -3/+7 | |
| | | | | | | | | | | | we'd add an offset from the spelling location space to the instantiation location, which doesn't make sense and would lead up to the text diagnostics crashing when presented with non-sensical locations. This fixes rdar://7597492, a crash on 255.vortex. llvm-svn: 96004 | |||||
* | Patch to fix a warning which exposed a bug in building | Fariborz Jahanian | 2010-02-12 | 1 | -12/+12 | |
| | | | | | | | a qualified objective-c pointer type. Fixes radar 7638810. (Also removes a FIXME). llvm-svn: 96003 | |||||
* | restructure code a bit: there are two potential issues | Chris Lattner | 2010-02-12 | 1 | -11/+15 | |
| | | | | | | | | | | | | worth asserting about in this code: 1) if the source range is bogus (begin loc after end loc), and 2) if the client is trying to highlight a range that is purely whitespace. It is possible to just silently ignore #2, but it seems like it is always a bug, so lets keep asserting on this condition, but with a better assert message. llvm-svn: 95998 | |||||
* | Fix a refacto that broke the clang-on-clang build. | Anders Carlsson | 2010-02-12 | 1 | -7/+1 | |
| | | | | llvm-svn: 95994 | |||||
* | Fixes a rewriter bug rewriting function decl. | Fariborz Jahanian | 2010-02-12 | 1 | -2/+14 | |
| | | | | | | | with block-pointer-type as one or more of its arguments. Fixes radar 7638400. llvm-svn: 95992 | |||||
* | Improve representation of tag declarations first declared or defined | Douglas Gregor | 2010-02-12 | 3 | -3/+6 | |
| | | | | | | within the declarator of another declaration, from Enea Zaffanella! llvm-svn: 95991 | |||||
* | Start stubbing out more of the covariant thunk support. | Anders Carlsson | 2010-02-12 | 1 | -10/+20 | |
| | | | | llvm-svn: 95990 | |||||
* | Simplify incomplete-array merging code in the AST importer, thanks to | Douglas Gregor | 2010-02-12 | 1 | -24/+14 | |
| | | | | | | Daniel's suggestion. llvm-svn: 95987 | |||||
* | Fix a latent bug found by Ahmed Charles, where we were calling | Douglas Gregor | 2010-02-12 | 1 | -1/+1 | |
| | | | | | | ASTContext::getFunctionType with the wrong set of arguments. llvm-svn: 95986 | |||||
* | 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 | |||||
* | Fix PR6282: the include guard optimization cannot happen if the | Chris Lattner | 2010-02-12 | 1 | -7/+10 | |
| | | | | | | | | guard macro is already defined for the first occurrence of the header. If it is, the body will be skipped and not be properly analyzed for the include guard optimization. llvm-svn: 95972 | |||||
* | 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 | |||||
* | Work around an annoying, non-standard optimization in the glibc | Douglas Gregor | 2010-02-12 | 3 | -6/+67 | |
| | | | | | | | | | | | | | | | | | | | | | | headers, where malloc (and many other libc functions) are declared with empty throw specifications, e.g., extern void *malloc (__SIZE_TYPE__ __size) throw () __attribute__ ((__malloc__)) ; The C++ standard doesn't seem to allow this, and redeclaring malloc as the standard permits (as follows) resulted in Clang (rightfully!) complaining about mis-matched exception specifications. void *malloc(size_t size); We work around this by silently propagating an empty throw specification "throw()" from a function with C linkage declared in a system header to a redeclaration that has no throw specifier. Ick. llvm-svn: 95969 | |||||
* | 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 | |||||
* | In C++, allow builtins to be referred to via qualified name lookup, e.g., | Douglas Gregor | 2010-02-12 | 2 | -30/+48 | |
| | | | | | | | | ::__builtin_va_copy Fixes one of the Firefox issues in PR5511. llvm-svn: 95966 | |||||
* | More work on vtable layout. We can now layout vtables with primary bases. | Anders Carlsson | 2010-02-12 | 1 | -52/+138 | |
| | | | | llvm-svn: 95965 |