]> granicus.if.org Git - clang/commit
Throw the switch to convert clang to the new exception handling model!
authorBill Wendling <isanbard@gmail.com>
Mon, 19 Sep 2011 20:31:14 +0000 (20:31 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 19 Sep 2011 20:31:14 +0000 (20:31 +0000)
commit285cfd8953d4ca4da613a47a0d691f7234068f8c
treeac7f41851ea9aeae7dc84d780e7881e156c7152f
parent950be71c745409e373ae8a834490f9026c8ac222
Throw the switch to convert clang to the new exception handling model!

This model uses the 'landingpad' instruction, which is pinned to the top of the
landing pad. (A landing pad is defined as the destination of the unwind branch
of an invoke instruction.) All of the information needed to generate the correct
exception handling metadata during code generation is encoded into the
landingpad instruction.

The new 'resume' instruction takes the place of the llvm.eh.resume intrinsic
call. It's lowered in much the same way as the intrinsic is.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140049 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
lib/CodeGen/CGException.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CXX/except/except.spec/p9-dynamic.cpp
test/CXX/except/except.spec/p9-noexcept.cpp
test/CodeGen/exceptions.c
test/CodeGenCXX/arm.cpp
test/CodeGenCXX/destructors.cpp
test/CodeGenCXX/dynamic-cast.cpp
test/CodeGenCXX/eh.cpp
test/CodeGenCXX/nrvo.cpp
test/CodeGenCXX/partial-destruction.cpp
test/CodeGenCXX/threadsafe-statics-exceptions.cpp
test/CodeGenCXX/typeid.cpp
test/CodeGenObjC/blocks-2.m
test/CodeGenObjC/gnu-exceptions.m
test/CodeGenObjC/terminate.m
test/CodeGenObjCXX/catch-id-type.mm
test/CodeGenObjCXX/exceptions.mm