aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86WinEHState.cpp
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2015-10-06 20:28:16 +0000
committerJoseph Tremoulet <jotrem@microsoft.com>2015-10-06 20:28:16 +0000
commit2afea5438f924af932cf62e39daa4a06e298fb37 (patch)
tree6ddf7b58761a8eb26d3e00a4856588b75bc9e936 /llvm/lib/Target/X86/X86WinEHState.cpp
parenta087fd21daaa43a04c9721976bf8f57a92a4f492 (diff)
downloadllvm-2afea5438f924af932cf62e39daa4a06e298fb37.zip
llvm-2afea5438f924af932cf62e39daa4a06e298fb37.tar.gz
llvm-2afea5438f924af932cf62e39daa4a06e298fb37.tar.bz2
[WinEH] Recognize CoreCLR personality function
Summary: - Add CoreCLR to if/else ladders and switches as appropriate. - Rename isMSVCEHPersonality to isFuncletEHPersonality to better reflect what it captures. Reviewers: majnemer, andrew.w.kaylor, rnk Subscribers: pgavlin, AndyAyers, llvm-commits Differential Revision: http://reviews.llvm.org/D13449 llvm-svn: 249455
Diffstat (limited to 'llvm/lib/Target/X86/X86WinEHState.cpp')
-rw-r--r--llvm/lib/Target/X86/X86WinEHState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86WinEHState.cpp b/llvm/lib/Target/X86/X86WinEHState.cpp
index 3a73338..993879e 100644
--- a/llvm/lib/Target/X86/X86WinEHState.cpp
+++ b/llvm/lib/Target/X86/X86WinEHState.cpp
@@ -156,7 +156,7 @@ bool WinEHStatePass::runOnFunction(Function &F) {
if (WinEHParentName != F.getName() && !WinEHParentName.empty())
return false;
- // Check the personality. Do nothing if this is not an MSVC personality.
+ // Check the personality. Do nothing if this personality doesn't use funclets.
if (!F.hasPersonalityFn())
return false;
PersonalityFn =
@@ -164,7 +164,7 @@ bool WinEHStatePass::runOnFunction(Function &F) {
if (!PersonalityFn)
return false;
Personality = classifyEHPersonality(PersonalityFn);
- if (!isMSVCEHPersonality(Personality))
+ if (!isFuncletEHPersonality(Personality))
return false;
// Skip this function if there are no EH pads and we aren't using IR-level