summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup; remove some duplicated code.Anders Carlsson2010-02-131-96/+4
| | | | llvm-svn: 96131
* Assert if we encounter this adjustments.Anders Carlsson2010-02-131-2/+9
| | | | llvm-svn: 96125
* Start laying out secondary vtables.Anders Carlsson2010-02-131-10/+17
| | | | llvm-svn: 96123
* Merge base offsets and dump them.Anders Carlsson2010-02-131-6/+42
| | | | llvm-svn: 96121
* Don't make return adjustments for pure virtual member functions.Anders Carlsson2010-02-131-5/+8
| | | | llvm-svn: 96120
* Handle virtual bases in return adjustment types.Anders Carlsson2010-02-131-17/+37
| | | | llvm-svn: 96119
* Handle virtual bases in ComputeBaseOffset.Anders Carlsson2010-02-131-10/+27
| | | | llvm-svn: 96117
* Add newline.Daniel Dunbar2010-02-131-1/+1
| | | | llvm-svn: 96116
* More work on covariant return types. We now handle non-virtual adjustments fine.Anders Carlsson2010-02-131-27/+96
| | | | llvm-svn: 96114
* add support for t Fedora 12 (February 2010), patch byChris Lattner2010-02-131-0/+4
| | | | | | Dyachenko Dmitry. Our system is "not so elegant" here. llvm-svn: 96111
* Emit the 'alignstack' LLVM function attribute when we encounter a functionCharles Davis2010-02-131-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 Carruth2010-02-131-1/+1
| | | | llvm-svn: 96099
* Silence unused variable warning in a build without assertions.Chandler Carruth2010-02-131-1/+2
| | | | llvm-svn: 96098
* Skip implicit instantiation of templated variables where a more recentChandler Carruth2010-02-131-0/+18
| | | | | | redeclaration provides an explicit instantiation or is invalid. llvm-svn: 96097
* Remove dead {include, semicolon, variable}.Benjamin Kramer2010-02-131-5/+1
| | | | llvm-svn: 96087
* Use a different name for this iterator. MSVC and clang++ didn't like "I" in ↵Benjamin Kramer2010-02-131-3/+3
| | | | | | the same scope twice. llvm-svn: 96086
* Silence a GCC warning about a possibly uninitialized variable. It's data flowChandler Carruth2010-02-131-1/+1
| | | | | | only flows so far it seems. llvm-svn: 96085
* Fix a fiendinshly fun little type-canonicalization bug, where we wereDouglas Gregor2010-02-131-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 inDouglas Gregor2010-02-131-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 buildsJohn McCall2010-02-132-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 Carlsson2010-02-131-34/+155
| | | | llvm-svn: 96070
* Enhance RegionStore::InvalidateRegions() to correctly invalidate bindingsTed Kremenek2010-02-131-12/+32
| | | | | | by scanning through the values of LazyCompoundVals. llvm-svn: 96067
* Switch the standard DeclarationName comparator to be a tri-valued comparator.John McCall2010-02-132-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 Kremenek2010-02-131-20/+28
| | | | | | | | separate method. No functionality change. llvm-svn: 96060
* Fix for PR6274: teach constant folding to evaluate __builtin_expect.Eli Friedman2010-02-131-2/+5
| | | | llvm-svn: 96054
* if-0 out printf.Eli Friedman2010-02-131-1/+1
| | | | llvm-svn: 96052
* Add an option to disable the LLVM verifier pass (which is still alwaysJohn McCall2010-02-121-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 aDouglas Gregor2010-02-121-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 Kremenek2010-02-122-3/+3
| | | | llvm-svn: 96041
* Make the following functions thread-safe but having them return an ↵Ted Kremenek2010-02-121-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 andDouglas Gregor2010-02-121-20/+232
| | | | | | enumerators, along with ImplicitCastExprs to make it work. llvm-svn: 96024
* Complain if block-literal expression's parameter name isFariborz Jahanian2010-02-122-2/+10
| | | | | | missing (in c/objc mode). Fixes radar 7528255. llvm-svn: 96017
* Don't error when setting a sub-structure variable via objc propertiesFariborz Jahanian2010-02-121-6/+1
| | | | | | in objective-c++ mode (do it for objective-c only). llvm-svn: 96012
* fix a bug in SourceManager::getInstantiationLocSlowCase, whereChris Lattner2010-02-121-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 buildingFariborz Jahanian2010-02-121-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 issuesChris Lattner2010-02-121-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 Carlsson2010-02-121-7/+1
| | | | llvm-svn: 95994
* Fixes a rewriter bug rewriting function decl.Fariborz Jahanian2010-02-121-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 definedDouglas Gregor2010-02-123-3/+6
| | | | | | within the declarator of another declaration, from Enea Zaffanella! llvm-svn: 95991
* Start stubbing out more of the covariant thunk support.Anders Carlsson2010-02-121-10/+20
| | | | llvm-svn: 95990
* Simplify incomplete-array merging code in the AST importer, thanks toDouglas Gregor2010-02-121-24/+14
| | | | | | Daniel's suggestion. llvm-svn: 95987
* Fix a latent bug found by Ahmed Charles, where we were callingDouglas Gregor2010-02-121-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 Carlsson2010-02-121-5/+26
| | | | llvm-svn: 95985
* Move overrider out into a separate struct.Anders Carlsson2010-02-121-13/+25
| | | | llvm-svn: 95984
* Fix PR6282: the include guard optimization cannot happen if theChris Lattner2010-02-121-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 Carlsson2010-02-121-11/+48
| | | | | | to dump multiple address points for a single offset. llvm-svn: 95970
* Work around an annoying, non-standard optimization in the glibcDouglas Gregor2010-02-123-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 fromJohn McCall2010-02-121-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 Gregor2010-02-122-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 Carlsson2010-02-121-52/+138
| | | | llvm-svn: 95965
OpenPOWER on IntegriCloud