mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
[WinEH] Try to make the MachineFunction CFG more accurate
This avoids emitting code for unreachable landingpad blocks that contain calls to llvm.eh.actions and indirectbr. It's also a first step towards unifying the SEH and WinEH lowering codepaths. I'm keeping the old fan-in lowering of SEH around until the preparation version works well enough that we can switch over without breaking existing users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -570,10 +570,13 @@ const Function *MachineModuleInfo::getPersonality() const {
|
||||
}
|
||||
|
||||
EHPersonality MachineModuleInfo::getPersonalityType() {
|
||||
if (PersonalityTypeCache == EHPersonality::Unknown)
|
||||
PersonalityTypeCache = classifyEHPersonality(getPersonality());
|
||||
if (PersonalityTypeCache == EHPersonality::Unknown) {
|
||||
if (const Function *F = getPersonality())
|
||||
PersonalityTypeCache = classifyEHPersonality(F);
|
||||
}
|
||||
return PersonalityTypeCache;
|
||||
}
|
||||
|
||||
/// getPersonalityIndex - Return unique index for current personality
|
||||
/// function. NULL/first personality function should always get zero index.
|
||||
unsigned MachineModuleInfo::getPersonalityIndex() const {
|
||||
|
||||
Reference in New Issue
Block a user