diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-02-03 22:52:35 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-02-03 22:52:35 +0000 |
commit | 11ca834bef952ee84d61b0e4bd3045077095f280 (patch) | |
tree | f514413543a35b9c0571bd67e2c0060ba81949ab /clang/test/CodeGenCXX/copy-constructor-elim.cpp | |
parent | 765fcc0d5b8f7eafae0898ccde4075eea6295d70 (diff) | |
download | bcm5719-llvm-11ca834bef952ee84d61b0e4bd3045077095f280.tar.gz bcm5719-llvm-11ca834bef952ee84d61b0e4bd3045077095f280.zip |
SEH: Track users of __try so we can pick a per-func EH personality
There are four major kinds of declarations that cause code generation:
- FunctionDecl (includes CXXMethodDecl etc)
- ObjCMethodDecl
- BlockDecl
- CapturedDecl
This patch tracks __try usage on FunctionDecls and diagnoses __try usage
in other decls. If someone wants to use __try from ObjC, they can use it
from a free function, since the ObjC code will need an ObjC-style EH
personality.
Eventually we will want to look through CapturedDecls and track SEH
usage on the parent FunctionDecl, if present.
llvm-svn: 228058
Diffstat (limited to 'clang/test/CodeGenCXX/copy-constructor-elim.cpp')
0 files changed, 0 insertions, 0 deletions