Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Robustify instantiation of templates when there are errors in the | Douglas Gregor | 2010-03-01 | 5 | -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't | John McCall | 2010-03-01 | 2 | -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's | Douglas Gregor | 2010-03-01 | 2 | -8/+17 | |
| | | | | | | TransformDefinition. llvm-svn: 97445 | |||||
* | When looking for the instantiated declaration that corresponds to a | Douglas Gregor | 2010-03-01 | 6 | -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 is | Zhongxing Xu | 2010-03-01 | 7 | -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 Xu | 2010-03-01 | 1 | -1/+3 | |
| | | | | | | silently. llvm-svn: 97436 | |||||
* | Add comments. | Zhongxing Xu | 2010-03-01 | 1 | -0/+4 | |
| | | | | llvm-svn: 97435 | |||||
* | Don't warn about case-value conversions from a negative value to a | Douglas Gregor | 2010-03-01 | 2 | -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 Clang | Chandler Carruth | 2010-02-28 | 1 | -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 Gregor | 2010-02-28 | 2 | -1/+31 | |
| | | | | llvm-svn: 97422 | |||||
* | Add name mangling for DeclRefExprs that refer to external names | Douglas Gregor | 2010-02-28 | 2 | -3/+28 | |
| | | | | llvm-svn: 97418 | |||||
* | Remove debug output. | Anders Carlsson | 2010-02-28 | 1 | -2/+0 | |
| | | | | llvm-svn: 97407 | |||||
* | Handle unused functions in construction vtables correctly. | Anders Carlsson | 2010-02-28 | 2 | -9/+24 | |
| | | | | llvm-svn: 97406 | |||||
* | pull some altivec stuff out of line. | Chris Lattner | 2010-02-28 | 2 | -59/+79 | |
| | | | | llvm-svn: 97405 | |||||
* | Warn about the deprecated string literal -> char* conversion. Fixes PR6428. | Douglas Gregor | 2010-02-28 | 8 | -15/+22 | |
| | | | | llvm-svn: 97404 | |||||
* | Implement PR6423 by using one token of lookahead to disambiguate | Chris Lattner | 2010-02-28 | 4 | -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 Carlsson | 2010-02-28 | 2 | -10/+30 | |
| | | | | | | to check if the vtable is a primary base in the layout class. llvm-svn: 97402 | |||||
* | Add another construction vtable test. | Anders Carlsson | 2010-02-28 | 1 | -0/+43 | |
| | | | | llvm-svn: 97401 | |||||
* | Support constant-evaluation of __builtin_nans* as well as the correct constant | John McCall | 2010-02-28 | 2 | -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 not | Zhongxing Xu | 2010-02-28 | 1 | -1/+1 | |
| | | | | | | definition. llvm-svn: 97373 | |||||
* | Fix typo. | Ted Kremenek | 2010-02-28 | 1 | -1/+1 | |
| | | | | llvm-svn: 97365 | |||||
* | More improvements to construction vtables; we know handle vbase offsets ↵ | Anders Carlsson | 2010-02-28 | 3 | -43/+105 | |
| | | | | | | correctly (I hope). llvm-svn: 97361 | |||||
* | Opt into the Verifier now that it's an opt-in feature of | Dan Gohman | 2010-02-28 | 1 | -1/+10 | |
| | | | | | | addPassesToEmitFile. llvm-svn: 97358 | |||||
* | Pass information about whether a base is virtual or not down to ↵ | Anders Carlsson | 2010-02-28 | 3 | -19/+37 | |
| | | | | | | getCtorVtable, we need this information in the vtable builder. llvm-svn: 97356 | |||||
* | Add new function. | Anders Carlsson | 2010-02-28 | 1 | -2/+8 | |
| | | | | llvm-svn: 97353 | |||||
* | Fix to dumpLayout; we want to be able to dump address points even if the ↵ | Anders Carlsson | 2010-02-27 | 1 | -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 Lewycky | 2010-02-27 | 1 | -1/+3 | |
| | | | | | | Also, add support for 32-bit x86 Debian sid. llvm-svn: 97347 | |||||
* | Add a simple construction vtable test. | Anders Carlsson | 2010-02-27 | 2 | -6/+57 | |
| | | | | llvm-svn: 97344 | |||||
* | Start fleshing out construction vtable support. | Anders Carlsson | 2010-02-27 | 1 | -10/+38 | |
| | | | | llvm-svn: 97342 | |||||
* | Enable the new vtable layout code for vtables that aren't construction ↵ | Anders Carlsson | 2010-02-27 | 1 | -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 Carlsson | 2010-02-27 | 1 | -61/+61 | |
| | | | | llvm-svn: 97340 | |||||
* | Make sure to insert the primary base in the set :) | Anders Carlsson | 2010-02-27 | 1 | -0/+3 | |
| | | | | llvm-svn: 97339 | |||||
* | Use the real base offset when calculating vbase offsets. | Anders Carlsson | 2010-02-27 | 2 | -1/+47 | |
| | | | | llvm-svn: 97338 | |||||
* | Figured out why the test was failing, this will hopefully fix it. | Anders Carlsson | 2010-02-27 | 2 | -4/+9 | |
| | | | | llvm-svn: 97336 | |||||
* | Don't add this adjustments for pure virtual member functions. | Anders Carlsson | 2010-02-27 | 2 | -3/+40 | |
| | | | | llvm-svn: 97334 | |||||
* | We want to store method info for unused functions. | Anders Carlsson | 2010-02-27 | 1 | -10/+20 | |
| | | | | llvm-svn: 97333 | |||||
* | XFAIL this for now. I have no idea why this test is failing on some ↵ | Anders Carlsson | 2010-02-27 | 1 | -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 Kramer | 2010-02-27 | 1 | -8/+24 | |
| | | | | llvm-svn: 97331 | |||||
* | Move method out-of-line. I thought this would be a candidate for inlining ↵ | Benjamin Kramer | 2010-02-27 | 2 | -14/+19 | |
| | | | | | | but I was wrong. llvm-svn: 97330 | |||||
* | Add another test. | Anders Carlsson | 2010-02-27 | 1 | -0/+48 | |
| | | | | llvm-svn: 97329 | |||||
* | Finish up the changes to this adjustments. | Anders Carlsson | 2010-02-27 | 2 | -37/+163 | |
| | | | | llvm-svn: 97328 | |||||
* | Another trivial getSpelling simplification. | Benjamin Kramer | 2010-02-27 | 1 | -4/+2 | |
| | | | | llvm-svn: 97327 | |||||
* | Stub out more of the 'this' pointer adjustment fixes I've been planning. ↵ | Anders Carlsson | 2010-02-27 | 1 | -13/+36 | |
| | | | | | | Start using a set vector for primary bases so they will be ordered. llvm-svn: 97326 | |||||
* | Simplify code. | Benjamin Kramer | 2010-02-27 | 1 | -24/+8 | |
| | | | | llvm-svn: 97324 | |||||
* | Fix thinko. | Benjamin Kramer | 2010-02-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 97323 | |||||
* | Add an overload of Preprocessor::getSpelling which takes a SmallVector and | Benjamin Kramer | 2010-02-27 | 9 | -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 while | Ted Kremenek | 2010-02-27 | 3 | -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 system | Kovarththanan Rajaratnam | 2010-02-27 | 2 | -0/+31 | |
| | | | | llvm-svn: 97311 | |||||
* | Add comment | Kovarththanan Rajaratnam | 2010-02-27 | 1 | -0/+2 | |
| | | | | llvm-svn: 97309 | |||||
* | Add header + comments | Kovarththanan Rajaratnam | 2010-02-27 | 1 | -0/+12 | |
| | | | | llvm-svn: 97308 |