diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 10:51:19 +0000 | 
| commit | eb11fae6d08f479c0799db45860a98af528fa6e7 (patch) | |
| tree | 44d492a50c8c1a7eb8e2d17ea3360ec4d066f042 /lib/CodeGen/DwarfEHPrepare.cpp | |
| parent | b8a2042aa938069e862750553db0e4d82d25822c (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/DwarfEHPrepare.cpp')
| -rw-r--r-- | lib/CodeGen/DwarfEHPrepare.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index 39d80c0bf9bd..4586649d17f0 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -18,6 +18,7 @@  #include "llvm/Analysis/CFG.h"  #include "llvm/Analysis/EHPersonalities.h"  #include "llvm/Analysis/TargetTransformInfo.h" +#include "llvm/Transforms/Utils/Local.h"  #include "llvm/CodeGen/RuntimeLibcalls.h"  #include "llvm/CodeGen/TargetLowering.h"  #include "llvm/CodeGen/TargetPassConfig.h" @@ -33,7 +34,6 @@  #include "llvm/Pass.h"  #include "llvm/Support/Casting.h"  #include "llvm/Target/TargetMachine.h" -#include "llvm/Transforms/Utils/Local.h"  #include <cstddef>  using namespace llvm; @@ -195,9 +195,9 @@ bool DwarfEHPrepare::InsertUnwindResumeCalls(Function &Fn) {    if (Resumes.empty())      return false; -  // Check the personality, don't do anything if it's funclet-based. +  // Check the personality, don't do anything if it's scope-based.    EHPersonality Pers = classifyEHPersonality(Fn.getPersonalityFn()); -  if (isFuncletEHPersonality(Pers)) +  if (isScopedEHPersonality(Pers))      return false;    LLVMContext &Ctx = Fn.getContext();  | 
