summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.h
Commit message (Collapse)AuthorAgeFilesLines
* CodeGen: Move EHPersonality from CGException.h into the cpp file, it has no ↵Benjamin Kramer2012-02-081-56/+0
| | | | | | | | other users. While at it make it value-initializable to get rid of static ctors. llvm-svn: 150070
* now that we have a centralized place to do so, add some using declarations forChris Lattner2011-07-201-6/+6
| | | | | | | some common llvm types: stringref and smallvector. This cleans up the codebase quite a bit. llvm-svn: 135576
* Fix Objective-C++ exceptions (GNU runtime).David Chisnall2011-03-201-0/+1
| | | | llvm-svn: 127980
* Move all the cleanups framework code into a single file.John McCall2011-01-281-536/+3
| | | | | | Pure motion. llvm-svn: 124484
* ARM EH uses a different personality function in C.John McCall2010-11-071-0/+1
| | | | llvm-svn: 118366
* Opportunistically use the C++ personality function in ObjC++John McCall2010-09-161-6/+6
| | | | | | translation units that don't catch ObjC types. rdar://problem/8434851 llvm-svn: 114070
* Implement the EH cleanup to call 'operator delete' if a new-expression throwsJohn McCall2010-09-141-27/+21
| | | | | | (but not if destructors associated with the full-expression throw). llvm-svn: 113836
* More cleanup enabling.John McCall2010-08-141-0/+22
| | | | llvm-svn: 111070
* Sketch out a framework for delaying the activation of a cleanup.John McCall2010-08-131-4/+36
| | | | | | Not yet complete or used. llvm-svn: 111044
* Revise cleanup IR generation to fix a major bug with cleanups (PR7686)John McCall2010-07-231-10/+154
| | | | | | | as well as some significant asymptotic inefficiencies with threading multiple jumps through deep cleanups. llvm-svn: 109274
* Rename LazyCleanup -> Cleanup. No functionality change for these last threeJohn McCall2010-07-211-15/+15
| | | | | | commits. llvm-svn: 109000
* Rip out EHCleanupScope.John McCall2010-07-211-62/+3
| | | | llvm-svn: 108999
* The GNU-runtime ObjC personality function doesn't let us rethrow with URR forJohn McCall2010-07-171-0/+26
| | | | | | multiple reasons. Rethrow with _objc_exception_throw instead. Fixes PR7656. llvm-svn: 108595
* Teach IR generation how to lazily emit cleanups. This has a lot of advantages,John McCall2010-07-131-3/+89
| | | | | | | | | | | | | | | mostly in avoiding unnecessary work at compile time but also in producing more sensible block orderings. Move the destructor cleanups for local variables over to use lazy cleanups. Eventually all cleanups will do this; for now we have some awkward code duplication. Tell IR generation just to never produce landing pads in -fno-exceptions. This is a much more comprehensive solution to a problem which previously was half-solved by checks in most cleanup-generation spots. llvm-svn: 108270
* Validated by nightly-test runs on x86 and x86-64 darwin, including afterJohn McCall2010-07-061-0/+342
self-host. Hopefully these results hold up on different platforms. I tried to keep the GNU ObjC runtime happy, but it's hard for me to test. Reimplement how clang generates IR for exceptions. Instead of creating new invoke destinations which sequentially chain to the previous destination, push a more semantic representation of *why* we need the cleanup/catch/filter behavior, then collect that information into a single landing pad upon request. Also reorganizes how normal cleanups (i.e. cleanups triggered by non-exceptional control flow) are generated, since it's actually fairly closely tied in with the former. Remove the need to track which cleanup scope a block is associated with. Document a lot of previously poorly-understood (by me, at least) behavior. The new framework implements the Horrible Hack (tm), which requires every landing pad to have a catch-all so that inlining will work. Clang no longer requires the Horrible Hack just to make exceptions flow correctly within a function, however. The HH is an unfortunate requirement of LLVM's EH IR. llvm-svn: 107631
OpenPOWER on IntegriCloud