summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't crash when mangling empty anonymous unions. We never actually *need*John McCall2010-08-051-1/+5
| | | | | | | these, but it's convenient to mangle them when deferring them (in the 99.99% case where it's not an anonymous union, of course). llvm-svn: 110381
* Collect namespaces that need updating in a PCH chain. WIPSebastian Redl2010-08-051-0/+5
| | | | llvm-svn: 110378
* Add support for block imported struct variable layout info.Fariborz Jahanian2010-08-051-2/+10
| | | | | | (objc gc and blocks in NeXt runtime). llvm-svn: 110377
* It turns out that linkers (at least, the Darwin linker) don't necessarilyJohn McCall2010-08-052-16/+19
| | | | | | | | | | | do the right thing with mixed-visibility symbols, so disable the visibility optimization where that's possible, i.e. with template classes (since it's possible that an arbitrary template might be subject to an explicit instantiation elsewhere). 447.dealII actually does this. I've put the code under an option that's currently not hooked up to anything. llvm-svn: 110374
* fix the va_list definition for vc++64, patch by Cameron Esfahani!Chris Lattner2010-08-051-3/+0
| | | | llvm-svn: 110370
* Write various C++-specific records to chained PCHs. Tests will come later.Sebastian Redl2010-08-052-22/+87
| | | | llvm-svn: 110357
* Argument evaluation order is not guaranteed. Split these out to force an order.John McCall2010-08-051-6/+7
| | | | llvm-svn: 110354
* Fixed logic error in UnreachableCodeChecker's marking algorithm that would ↵Tom Care2010-08-051-3/+6
| | | | | | sometimes allow for multiple sequential statements to be flagged. llvm-svn: 110353
* Fix a major bug with -ftrapv and ++/--. Patch by David Keaton!John McCall2010-08-051-1/+2
| | | | llvm-svn: 110347
* Allow multiple __declspec attributes after a class-key.John McCall2010-08-051-1/+1
| | | | | | Patch by Francois Pichet! llvm-svn: 110344
* For now skip over aggregate non-byref block variables.Fariborz Jahanian2010-08-051-1/+4
| | | | | | (objc gc specific). llvm-svn: 110340
* Trying to unbreak buildbot.Fariborz Jahanian2010-08-051-1/+2
| | | | llvm-svn: 110339
* Revert r110317, and add a comment why the assertion is not an invariant.Ted Kremenek2010-08-051-4/+4
| | | | llvm-svn: 110330
* Flip the switch to use OffsetOfExpr unconditionally; feel free to revert ifEli Friedman2010-08-051-129/+5
| | | | | | | | this breaks something. I'll wait a few days before cleaning out UnaryOperator::OffsetOf. llvm-svn: 110328
* PR7769: Fix references to anonymous structs/unions in base classes inEli Friedman2010-08-051-7/+12
| | | | | | offsetof expressions. llvm-svn: 110327
* Add IRGen support for non-constant OffsetOfExpr.Eli Friedman2010-08-051-14/+90
| | | | llvm-svn: 110326
* Store the pending implicit instantiations in the PCH and perform them at the ↵Argyrios Kyrtzidis2010-08-053-20/+58
| | | | | | | | end of the translation unit that included the PCH, as God intended. llvm-svn: 110324
* Support #pragma weak for PCH.Argyrios Kyrtzidis2010-08-053-3/+46
| | | | llvm-svn: 110323
* Make sure C++ variable definitions are actually passed to the consumer when ↵Argyrios Kyrtzidis2010-08-051-1/+2
| | | | | | loaded from PCH. llvm-svn: 110322
* Make checker recognize OffsetOfExpr as a form of __builtin_offsetof.Eli Friedman2010-08-051-1/+4
| | | | llvm-svn: 110320
* Give clang_codeCompleteAt() an "options" parameter, and add a newDouglas Gregor2010-08-051-3/+11
| | | | | | | | | flags enumeration + default-generating function that allows code-completion to be customized via the libclang API. Plus, turn on spell-checking when performing code completion. llvm-svn: 110319
* TDK_InconsistentQuals is really totally different from TDK_Inconsistent.John McCall2010-08-053-11/+34
| | | | | | | Rename it to TDK_Underqualified to avoid this sort of confusion and give it its own diagnostic. llvm-svn: 110318
* Turn the predicate into an assertion. When could the unequal case happen?Zhongxing Xu2010-08-051-1/+3
| | | | llvm-svn: 110317
* Implement #pragma GCC visibility.Eli Friedman2010-08-0513-6/+187
| | | | llvm-svn: 110315
* Remove the warning for variables declared in the if-expression being used inNick Lewycky2010-08-051-21/+1
| | | | | | | | the else clause. The problem is that it's overly zealous and will respond to uses in assignments, or after assignments. We should bring this back once we can do it right. Fixes PR7100. llvm-svn: 110314
* Permit template argument deduction to add qualifiers within ObjC objectJohn McCall2010-08-051-1/+2
| | | | | | pointers like it can with normal and member pointers. llvm-svn: 110313
* operator<< on a DiagnosticBuilder should *always* output exactly one thing.John McCall2010-08-051-1/+3
| | | | | | | Null template arguments are bad, but they're better than crashing with an argument mismatch. llvm-svn: 110312
* Tweak GRState::unbindLoc to use makeWithStore, and make sure it's only ↵Jordy Rose2010-08-051-3/+3
| | | | | | called for non-region locations. llvm-svn: 110310
* Remove InvalidateRegion from stores, since it's no longer called from outside.Jordy Rose2010-08-052-18/+2
| | | | llvm-svn: 110309
* Preserve calling convention etc. across template instantiations. Eli Friedman2010-08-054-10/+17
| | | | llvm-svn: 110304
* Get rid of isObjectType; when C++ says "object type", it generallyEli Friedman2010-08-055-16/+8
| | | | | | | just means "not a function type", not "not a function type or void". This changes behavior slightly, but generally in a way which accepts more code. llvm-svn: 110303
* Drop an unjustified limitation from Type::isObjectType(). Fixes PR7801 and ↵Sebastian Redl2010-08-051-1/+1
| | | | | | doesn't seem to break anything. llvm-svn: 110295
* Remove a redundant and broken check. Fixes PR7810.Sebastian Redl2010-08-051-12/+0
| | | | llvm-svn: 110294
* Clean up of my last patch.Fariborz Jahanian2010-08-051-13/+16
| | | | llvm-svn: 110290
* Correctly handle 'Class<...>' when examining Cocoa conventions in the static ↵Ted Kremenek2010-08-051-2/+3
| | | | | | analyzer. Fixes a crash reported in <rdar://problem/8272168>. Patch by Henry Mason! llvm-svn: 110289
* Remove bonehead redeclaration.Ted Kremenek2010-08-051-1/+1
| | | | llvm-svn: 110288
* Block variable layout bitmap API generation.Fariborz Jahanian2010-08-041-80/+136
| | | | llvm-svn: 110287
* Fix CFGBuilder to not blow out the stack when processing deeply nested ↵Ted Kremenek2010-08-041-5/+32
| | | | | | CaseStmts. Fixes <rdar://problem/8268753>. llvm-svn: 110286
* Extend the visibility-hidden optimization to linkonce_odr thunks forJohn McCall2010-08-041-1/+51
| | | | | | | | | functions with in-line definitions, since such thunks will be emitted at any use of the function. Completes the feature work for rdar://problem/7523229. llvm-svn: 110285
* Logical AVX instrinsics can be matched directly, no need to use builtins here.Bruno Cardoso Lopes2010-08-041-8/+8
| | | | llvm-svn: 110271
* Add -mavx and -mno-avx command line supportBruno Cardoso Lopes2010-08-041-2/+18
| | | | llvm-svn: 110265
* Activate selectors in chained PCH. Chained PCH now works for Objective-C.Sebastian Redl2010-08-041-1/+5
| | | | llvm-svn: 110262
* Add AVX intrinsics headerBruno Cardoso Lopes2010-08-042-0/+1159
| | | | llvm-svn: 110253
* Bring stats for the method pool back.Sebastian Redl2010-08-042-11/+18
| | | | llvm-svn: 110247
* Implement per-file reading of the selector table. This disables statistics ↵Sebastian Redl2010-08-042-75/+83
| | | | | | about method pool hits for the moment. llvm-svn: 110245
* Teach SemaChecking::CheckReturnStackAddr about ImplicitCastExprs that ↵Ted Kremenek2010-08-041-3/+15
| | | | | | convert values to an lvalue. This allows us to warn (again) about returning references to stack variables. (fixes PR 7812). llvm-svn: 110242
* More objc block variable layout info. work.Fariborz Jahanian2010-08-043-9/+26
| | | | llvm-svn: 110239
* Add CFGStmtMap, which defines a mapping from Stmt* to CFGBlock*. The ↵Ted Kremenek2010-08-042-0/+89
| | | | | | immediate intended use is in the unreachable code analysis. llvm-svn: 110230
* When chaining, only write interesting selectors to the PCH.Sebastian Redl2010-08-042-11/+47
| | | | llvm-svn: 110229
* Store the IDs of selectors in the PCH file explicitly.Sebastian Redl2010-08-042-33/+60
| | | | llvm-svn: 110219
OpenPOWER on IntegriCloud