summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Robustify instantiation of templates when there are errors in theDouglas Gregor2010-03-015-6/+66
| | | | | | | | | template definition. Do this both by being more tolerant of errors in our asserts and by not dropping a variable declaration completely when its initializer is ill-formed. Fixes the crash-on-invalid in PR6375, but not the original issue. llvm-svn: 97463
* Don't infinite-loop if TryAnnotateCXXScopeToken fails to annotate but doesn'tJohn McCall2010-03-012-0/+6
| | | | | | | | | signal an error. This can happen even when the current token is '::' if this is a ::new or ::delete expression. This was an oversight in my recent parser refactor; fixes PR 5825. llvm-svn: 97462
* Finish pushing source-location information though TreeTransform'sDouglas Gregor2010-03-012-8/+17
| | | | | | TransformDefinition. llvm-svn: 97445
* When looking for the instantiated declaration that corresponds to aDouglas Gregor2010-03-016-42/+105
| | | | | | | given declaration in a template, make sure that the context we're searching through is complete. Fixes PR6376. llvm-svn: 97444
* Since now we store the cast type with an ElementRegion, there isZhongxing Xu2010-03-017-42/+26
| | | | | | no need to store a type with SymbolRegionValue. llvm-svn: 97437
* Assert when loading from a code text region instead of returning an unknown ↵Zhongxing Xu2010-03-011-1/+3
| | | | | | silently. llvm-svn: 97436
* Add comments.Zhongxing Xu2010-03-011-0/+4
| | | | llvm-svn: 97435
* Don't warn about case-value conversions from a negative value to aDouglas Gregor2010-03-012-7/+12
| | | | | | | | larger unsigned value, since this is implementation-defined behavior. (We previously suppressed this warning when converting from a signed value to an unsigned value of the same size). llvm-svn: 97430
* Pass '-no-canonical-prefixes' on down to GCC. It's not specific to the ClangChandler Carruth2010-02-281-1/+1
| | | | | | driver and was in fact based on a feature in GCC. =] llvm-svn: 97424
* Improve name mangling for dependently-scoped declaration references.Douglas Gregor2010-02-282-1/+31
| | | | llvm-svn: 97422
* Add name mangling for DeclRefExprs that refer to external namesDouglas Gregor2010-02-282-3/+28
| | | | llvm-svn: 97418
* Remove debug output.Anders Carlsson2010-02-281-2/+0
| | | | llvm-svn: 97407
* Handle unused functions in construction vtables correctly.Anders Carlsson2010-02-282-9/+24
| | | | llvm-svn: 97406
* pull some altivec stuff out of line.Chris Lattner2010-02-282-59/+79
| | | | llvm-svn: 97405
* Warn about the deprecated string literal -> char* conversion. Fixes PR6428.Douglas Gregor2010-02-288-15/+22
| | | | llvm-svn: 97404
* Implement PR6423 by using one token of lookahead to disambiguate Chris Lattner2010-02-284-36/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | an *almost* always incorrect case. This only does the lookahead in the insanely unlikely case, so it shouldn't impact performance. On this testcase: struct foo { } typedef int x; Before: t.c:3:9: error: cannot combine with previous 'struct' declaration specifier typedef int x; ^ After: t.c:2:2: error: expected ';' after struct } ^ ; llvm-svn: 97403
* When laying out vtables for virtual bases in construction vtables, we need ↵Anders Carlsson2010-02-282-10/+30
| | | | | | to check if the vtable is a primary base in the layout class. llvm-svn: 97402
* Add another construction vtable test.Anders Carlsson2010-02-281-0/+43
| | | | llvm-svn: 97401
* Support constant-evaluation of __builtin_nans* as well as the correct constantJohn McCall2010-02-282-16/+75
| | | | | | | | evaluation of __builtin_nan*. Most of the work to make this work is in LLVM. Fixes <rdar://problem/7696712> and part of PR 5255. llvm-svn: 97383
* Use getBody() to get the function definition when the decl referenced is notZhongxing Xu2010-02-281-1/+1
| | | | | | definition. llvm-svn: 97373
* Fix typo.Ted Kremenek2010-02-281-1/+1
| | | | llvm-svn: 97365
* More improvements to construction vtables; we know handle vbase offsets ↵Anders Carlsson2010-02-283-43/+105
| | | | | | correctly (I hope). llvm-svn: 97361
* Opt into the Verifier now that it's an opt-in feature ofDan Gohman2010-02-281-1/+10
| | | | | | addPassesToEmitFile. llvm-svn: 97358
* Pass information about whether a base is virtual or not down to ↵Anders Carlsson2010-02-283-19/+37
| | | | | | getCtorVtable, we need this information in the vtable builder. llvm-svn: 97356
* Add new function.Anders Carlsson2010-02-281-2/+8
| | | | llvm-svn: 97353
* Fix to dumpLayout; we want to be able to dump address points even if the ↵Anders Carlsson2010-02-271-31/+34
| | | | | | vtable doesn't have any methods. llvm-svn: 97350
* Debian sid moved these headers into /4.4 and left /4.4.3 as a symlink. Update.Nick Lewycky2010-02-271-1/+3
| | | | | | Also, add support for 32-bit x86 Debian sid. llvm-svn: 97347
* Add a simple construction vtable test.Anders Carlsson2010-02-272-6/+57
| | | | llvm-svn: 97344
* Start fleshing out construction vtable support.Anders Carlsson2010-02-271-10/+38
| | | | llvm-svn: 97342
* Enable the new vtable layout code for vtables that aren't construction ↵Anders Carlsson2010-02-271-5/+9
| | | | | | vtables. (This doesn't mean that we emit LLVM IR using it yet, it just means that it's running and hopefully not crashing or asserting). llvm-svn: 97341
* Move ComputeThisAdjustmentBaseOffset to VtableBuilder.Anders Carlsson2010-02-271-61/+61
| | | | llvm-svn: 97340
* Make sure to insert the primary base in the set :)Anders Carlsson2010-02-271-0/+3
| | | | llvm-svn: 97339
* Use the real base offset when calculating vbase offsets.Anders Carlsson2010-02-272-1/+47
| | | | llvm-svn: 97338
* Figured out why the test was failing, this will hopefully fix it.Anders Carlsson2010-02-272-4/+9
| | | | llvm-svn: 97336
* Don't add this adjustments for pure virtual member functions.Anders Carlsson2010-02-272-3/+40
| | | | llvm-svn: 97334
* We want to store method info for unused functions.Anders Carlsson2010-02-271-10/+20
| | | | llvm-svn: 97333
* XFAIL this for now. I have no idea why this test is failing on some ↵Anders Carlsson2010-02-271-0/+1
| | | | | | machines. Looks like some sort of whitespace issue in FileCheck. llvm-svn: 97332
* Revert 97324. Chris says this cleanup could hurt -E performance.Benjamin Kramer2010-02-271-8/+24
| | | | llvm-svn: 97331
* Move method out-of-line. I thought this would be a candidate for inlining ↵Benjamin Kramer2010-02-272-14/+19
| | | | | | but I was wrong. llvm-svn: 97330
* Add another test.Anders Carlsson2010-02-271-0/+48
| | | | llvm-svn: 97329
* Finish up the changes to this adjustments.Anders Carlsson2010-02-272-37/+163
| | | | llvm-svn: 97328
* Another trivial getSpelling simplification.Benjamin Kramer2010-02-271-4/+2
| | | | llvm-svn: 97327
* Stub out more of the 'this' pointer adjustment fixes I've been planning. ↵Anders Carlsson2010-02-271-13/+36
| | | | | | Start using a set vector for primary bases so they will be ordered. llvm-svn: 97326
* Simplify code.Benjamin Kramer2010-02-271-24/+8
| | | | llvm-svn: 97324
* Fix thinko.Benjamin Kramer2010-02-271-1/+1
| | | | llvm-svn: 97323
* Add an overload of Preprocessor::getSpelling which takes a SmallVector andBenjamin Kramer2010-02-279-39/+34
| | | | | | returns a StringRef. Use it to simplify some repetitive code. llvm-svn: 97322
* Fix crasher caused by setting a bit in a possibly empty bitvector whileTed Kremenek2010-02-273-1/+12
| | | | | | doing printf format string checking. This is a recent regression. llvm-svn: 97318
* Wire up Daniel's new spiffy C interpreter into the CMake build systemKovarththanan Rajaratnam2010-02-272-0/+31
| | | | llvm-svn: 97311
* Add commentKovarththanan Rajaratnam2010-02-271-0/+2
| | | | llvm-svn: 97309
* Add header + commentsKovarththanan Rajaratnam2010-02-271-0/+12
| | | | llvm-svn: 97308
OpenPOWER on IntegriCloud