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 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 765fcc0d5b8f7eafae0898ccde4075eea6295d70 (diff) | |
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 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
