summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGException.cpp
Commit message (Collapse)AuthorAge
...
* Fixup spacing.Mike Stump2009-12-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91001 91177308-0d34-0410-b5e6-96231b3b80d8
* Ensure we only generate one terminate handler.Mike Stump2009-12-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90998 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove obsolete FIXME and some dead fallback code.Mike Stump2009-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90997 91177308-0d34-0410-b5e6-96231b3b80d8
* Add terminate handler for copy constructors for thrown objects. WIP.Mike Stump2009-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90994 91177308-0d34-0410-b5e6-96231b3b80d8
* Break out code for reuse. WIP.Mike Stump2009-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90991 91177308-0d34-0410-b5e6-96231b3b80d8
* Add cleanups for exceptional edges. WIP.Mike Stump2009-12-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90940 91177308-0d34-0410-b5e6-96231b3b80d8
* Add fixme.Mike Stump2009-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90884 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some old code. WIP.Mike Stump2009-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90882 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup catch parameters with class reference type. WIP.Mike Stump2009-12-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90821 91177308-0d34-0410-b5e6-96231b3b80d8
* Add codegen support for exception specifications. WIP.Mike Stump2009-12-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90817 91177308-0d34-0410-b5e6-96231b3b80d8
* Work around emitters that can't deal with dead code contexts yet.Mike Stump2009-12-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90796 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for function try blocks.Mike Stump2009-12-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90622 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup nested try blocks.Mike Stump2009-12-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90576 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix warning and be sure to set up the rethrow pointer if we fall offMike Stump2009-12-04
| | | | | | | the end of all the catches. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90574 91177308-0d34-0410-b5e6-96231b3b80d8
* Try/catch statements seem to be working well enough to turn on.Mike Stump2009-12-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90538 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable for now, doesn't play nice with the temporary code.Mike Stump2009-12-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90537 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixup reference binding for catch parameters.Mike Stump2009-12-04
| | | | | | | Fixup throws and rethrows to use invoke as appropriate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90513 91177308-0d34-0410-b5e6-96231b3b80d8
* These are done.Mike Stump2009-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90494 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve catch parameter bindings for scalar non-pointers. WIP.Mike Stump2009-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90492 91177308-0d34-0410-b5e6-96231b3b80d8
* Reflow.Mike Stump2009-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90407 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove untrue statement.Mike Stump2009-12-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90377 91177308-0d34-0410-b5e6-96231b3b80d8
* Cleanups on exceptional edges don't work at all, yet. This doesn'tMike Stump2009-12-02
| | | | | | | | catch very many of them and if we caught all of them, the errors would be annoying. I'm working on this next. WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90358 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a cleanup scope for each catch clause.Mike Stump2009-12-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90357 91177308-0d34-0410-b5e6-96231b3b80d8
* Pull the terminate handler up so that we can use it for the catchMike Stump2009-12-02
| | | | | | | | parameter setup code and set up the catch parameter setup code to protect that code with terminate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90340 91177308-0d34-0410-b5e6-96231b3b80d8
* Change rtti/Rtti to RTTI, as it is an acronym.Mike Stump2009-12-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90334 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid warning for getTerminateFn defined but not used.Mike Stump2009-12-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90330 91177308-0d34-0410-b5e6-96231b3b80d8
* terminate doesn't throw.Mike Stump2009-12-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90308 91177308-0d34-0410-b5e6-96231b3b80d8
* More exception handling improvements... WIP.Mike Stump2009-12-02
| | | | | | | | | | | | Highlights include: Add a helper to generate __cxa_free_exception and _ZSt9terminatev. Add a region to handle EH object deallocation for ctor failures for throw. Add a terminate handler for __cxa_end_catch. A framework for adding cleanup actions for the exceptional edges only. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90305 91177308-0d34-0410-b5e6-96231b3b80d8
* Much work on try/catch statement. WIP.Mike Stump2009-12-01
| | | | | | | | | | | | | | | | | | Highlights include: Fix __cxa_begin_catch so it now returns a value. Added getUnwindResumeOrRethrowFn helper to build up calls to _Unwind_Resume_or_Rethrow. Broke out object copying code into CopyObject from EmitCXXThrowExpr. Built up another version of CopyObject that can copy from memory for use in the catch parameter code. RTTI generation for type matching for catch. Code to check for the type match for catch. Code to generate the catch parameter, WIP, need make sure references and pointers and copy ctors work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90205 91177308-0d34-0410-b5e6-96231b3b80d8
* Checkpoint current work. WIP.Mike Stump2009-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89513 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement throw d, where d is a class type that requires copyMike Stump2009-11-20
| | | | | | | construction. WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89442 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle throw d, where d is a class type but only has a trivial copyMike Stump2009-11-20
| | | | | | | constructor. WIP. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89438 91177308-0d34-0410-b5e6-96231b3b80d8
* Add suport for throw;. WIP.Mike Stump2009-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89424 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix rtti generation for throws. WIP.Mike Stump2009-11-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89420 91177308-0d34-0410-b5e6-96231b3b80d8
* Get throws limping along, still a bunch of FIXMEs. Too bad we don't support ↵Anders Carlsson2009-10-30
| | | | | | catching anything yet :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85574 91177308-0d34-0410-b5e6-96231b3b80d8
* Add CGException.cpp, to be used for exception related code generation.Anders Carlsson2009-10-30
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85560 91177308-0d34-0410-b5e6-96231b3b80d8