]> granicus.if.org Git - clang/commit
Preserve exceptions information during calls code generation.
authorSamuel Antao <sfantao@us.ibm.com>
Mon, 23 Nov 2015 22:04:44 +0000 (22:04 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Mon, 23 Nov 2015 22:04:44 +0000 (22:04 +0000)
commit0cb5f3abb0de5d03e98e87256a3f369ad2a0e205
treef23d98402e4b357d568f8edcf6da172ca39653e1
parentaffe30e522ba1f222a8c4f634655e75f93ea2bb8
Preserve exceptions information during calls code generation.

This patch changes the generation of CGFunctionInfo to contain
the FunctionProtoType if it is available. This enables the code
generation for call instructions to look into this type for
exception information and therefore generate better quality
IR - it will not create invoke instructions for functions that
are know not to throw.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253926 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/CGFunctionInfo.h
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCGNU.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/CodeGenFunction.h
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/observe-noexcept.cpp [new file with mode: 0644]