summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Remove the IndirectPrimary parameter in LayoutVirtualBases; it's already ↵Anders Carlsson2010-03-112-11/+6
| | | | | | there as a member variable. llvm-svn: 98211
* More cleanup and simplification of the record layout builder.Anders Carlsson2010-03-112-74/+85
| | | | llvm-svn: 98208
* Support PPC-32 DWARF EH intrinisics. Thanks to rdivacky for his assistance.John McCall2010-03-111-0/+77
| | | | llvm-svn: 98206
* set alignment on static locals properly, patch by Arnaud de Grandmaison!Chris Lattner2010-03-101-0/+2
| | | | llvm-svn: 98204
* Get rid of the LayoutBaseNonVirtually; it was used to lay out a base either ↵Anders Carlsson2010-03-102-19/+20
| | | | | | as a non-virtual base or a virtual base. llvm-svn: 98198
* More shuffling.Anders Carlsson2010-03-102-65/+68
| | | | llvm-svn: 98197
* Cleanups, no functionality change yet.Anders Carlsson2010-03-102-6/+13
| | | | llvm-svn: 98196
* add DESTDIR support for clang headers, PR6556.Chris Lattner2010-03-101-4/+4
| | | | | | Patch by Matthias Klose! llvm-svn: 98192
* Fix calculation of whether a member function needs a thunk in construction ↵Anders Carlsson2010-03-102-13/+82
| | | | | | vtables. llvm-svn: 98191
* Change the 'super' messaging API in the rewriter.Fariborz Jahanian2010-03-102-23/+82
| | | | | | Fixes radar 7738452. llvm-svn: 98190
* Suppress the tag when printing an ElaboratedType if the language optionsJohn McCall2010-03-101-1/+6
| | | | | | | | | | claim this is C. We don't make ElaboratedTypes in C, but sometimes the language options during pretty-print lie to us. The rewriter should really be fixed to not rely on how types are pretty-printed, though. llvm-svn: 98189
* We were mistakenly marking morally virtual bases as being uninteresting. Fix ↵Anders Carlsson2010-03-102-5/+80
| | | | | | this. llvm-svn: 98180
* Ignore non-interesting bases when emitting construction vtables.Anders Carlsson2010-03-102-0/+71
| | | | llvm-svn: 98177
* Simplify assertion.Ted Kremenek2010-03-101-5/+1
| | | | llvm-svn: 98176
* Remove '#if 0' code. Lazy compound values have proven their worth.Ted Kremenek2010-03-101-39/+0
| | | | llvm-svn: 98175
* Fix -Wsign-compare warnings reported by clang++.Ted Kremenek2010-03-101-3/+3
| | | | llvm-svn: 98174
* Fix -Wsign-compare warning reported by clang++.Ted Kremenek2010-03-101-1/+2
| | | | llvm-svn: 98170
* Remove the subregion map cache. It is no longer used.Ted Kremenek2010-03-101-8/+0
| | | | llvm-svn: 98161
* Fix stale comment.Ted Kremenek2010-03-101-1/+1
| | | | llvm-svn: 98160
* Really apply (unnoticed weird git-svn merge conflict in 98144): Refactor ↵Ted Kremenek2010-03-101-299/+290
| | | | | | | | | | | RegionStore::RemoveDeadBindings to use the same core cluster analysis algorithm as RegionStore::InvalidateRegions(). Beyond simplifying the algorithm significantly, we no longer need to build subregion maps in RemoveDeadBindings(). This and other changes cause a significant speedup: the time to analyze sqlite3.c (single core) drops by 14%. llvm-svn: 98159
* Move test and also test codegen.Rafael Espindola2010-03-101-1/+1
| | | | llvm-svn: 98154
* When pretty-printing tag types, only print the tag if we're in C (andJohn McCall2010-03-10111-483/+484
| | | | | | | | | | therefore not creating ElaboratedTypes, which are still pretty-printed with the written tag). Most of these testcase changes were done by script, so don't feel too sorry for my fingers. llvm-svn: 98149
* Refactor RegionStore::RemoveDeadBindings to use the same coreTed Kremenek2010-03-101-87/+87
| | | | | | | | | | | cluster analysis algorithm as RegionStore::InvalidateRegions(). Beyond simplifying the algorithm significantly, we no longer need to build subregion maps in RemoveDeadBindings(). This and other changes cause a significant speedup: the time to analyze sqlite3.c (single core) drops by 14%. llvm-svn: 98144
* Refactor some of RegionStore's InvalidateRegionsWorker classTed Kremenek2010-03-101-62/+86
| | | | | | | into a 'ClusterAnalysis' parent class. The idea is to potentially reuse this for reworking RemoveDeadBindings. llvm-svn: 98143
* Add newline.Anders Carlsson2010-03-101-2/+1
| | | | llvm-svn: 98140
* Don't accidentally mark some functions in construction vtables as unused. ↵Anders Carlsson2010-03-102-30/+98
| | | | | | Also land the test for a previous checkin, now that it's correct. llvm-svn: 98139
* Allow the fast path through ASTContext::getTypeDeclType to be inlined.John McCall2010-03-102-19/+31
| | | | llvm-svn: 98138
* Add use-after-free check to MallocChecker.Zhongxing Xu2010-03-104-1/+51
| | | | llvm-svn: 98136
* Statement expressions can be used in global- or namespace-scoped blocksDouglas Gregor2010-03-102-2/+6
| | | | llvm-svn: 98135
* Create a new InjectedClassNameType to represent bare-word references to the John McCall2010-03-1028-129/+337
| | | | | | | | | | | | | injected class name of a class template or class template partial specialization. This is a non-canonical type; the canonical type is still a template specialization type. This becomes the TypeForDecl of the pattern declaration, which cleans up some amount of code (and complicates some other parts, but whatever). Fixes PR6326 and probably a few others, primarily by re-establishing a few invariants about TypeLoc sizes. llvm-svn: 98134
* When building construction vtables, we need to check if a primary virtual ↵Anders Carlsson2010-03-101-7/+29
| | | | | | base is actually a primary virtual base in the layout class. llvm-svn: 98131
* add missing testRafael Espindola2010-03-101-0/+31
| | | | llvm-svn: 98129
* Improve vcall offset handling in construction vtables. With this we layout ↵Anders Carlsson2010-03-102-21/+181
| | | | | | the construction vtables from the ABI examples correctly. llvm-svn: 98127
* Delay codegen of vtables when handling implicit instantiations.Rafael Espindola2010-03-107-37/+58
| | | | | | This fixes PR6474. llvm-svn: 98123
* Add insert/extract_ps and related random macros.Eric Christopher2010-03-101-0/+21
| | | | llvm-svn: 98114
* Use SmallString instead of alloca.Devang Patel2010-03-101-2/+3
| | | | llvm-svn: 98112
* When computing in AnalysisContext the variables referencedTed Kremenek2010-03-102-12/+40
| | | | | | by a block, also look at the contained blocks. llvm-svn: 98111
* Enhance basic store to also lazily symbolicate VarRegionsTed Kremenek2010-03-101-1/+2
| | | | | | with an 'unknown' memory space. llvm-svn: 98110
* Fix file reference for derived and composite types. Now, dwarf writer uses ↵Devang Patel2010-03-092-41/+40
| | | | | | strict verifier that ignores debug info for such types if their file info is unknown. llvm-svn: 98096
* Value-initialize the written-builtin-specifiers field of DeclSpec, whichJohn McCall2010-03-091-1/+2
| | | | | | | wasn't being initialized properly along the implicit-definition path. Found by the valgrind buildbot. llvm-svn: 98093
* Fix the test some more.Fariborz Jahanian2010-03-091-4/+4
| | | | llvm-svn: 98090
* See if this test makes it though buildbot.Fariborz Jahanian2010-03-091-1/+9
| | | | llvm-svn: 98087
* More then one anonymous aggregates on one line creates chaos when MDNode ↵Devang Patel2010-03-093-7/+19
| | | | | | | | uniquness is combined with RAUW operation. Right solution is to avoid using RAUW. This fixes PR 6554. llvm-svn: 98083
* Reverse the code gen. enabled part of test until I can figure outFariborz Jahanian2010-03-091-9/+1
| | | | | | how to check the code pattern no matter how clang is built. llvm-svn: 98079
* Improve Objective-C token-annotation testDouglas Gregor2010-03-091-1/+28
| | | | llvm-svn: 98078
* Code gen test for a previous patch forFariborz Jahanian2010-03-091-1/+8
| | | | | | radar 7709015 llvm-svn: 98073
* Use getLast() instead of getBasename().Devang Patel2010-03-091-1/+1
| | | | llvm-svn: 98072
* Don't error when a block pointer is passed to a Fariborz Jahanian2010-03-092-0/+13
| | | | | | vararg functions/methods. Fixes radar 7725203. llvm-svn: 98070
* Add an Objective-C test for token annotationDouglas Gregor2010-03-091-0/+22
| | | | llvm-svn: 98056
* Replace copy loops with memcpy.Benjamin Kramer2010-03-091-4/+2
| | | | llvm-svn: 98055
OpenPOWER on IntegriCloud