mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
If we're emitting additional CIEs due to personality functions
don't emit the default one. Explicitly check for the NULL CIE later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -44,7 +44,7 @@ MachineModuleInfo::MachineModuleInfo()
|
||||
, CallsUnwindInit(0)
|
||||
, DbgInfoAvailable(false)
|
||||
{
|
||||
// Always emit "no personality" info
|
||||
// Always emit some info, by default "no personality" info.
|
||||
Personalities.push_back(NULL);
|
||||
}
|
||||
MachineModuleInfo::~MachineModuleInfo() {
|
||||
@ -148,7 +148,12 @@ void MachineModuleInfo::addPersonality(MachineBasicBlock *LandingPad,
|
||||
if (Personalities[i] == Personality)
|
||||
return;
|
||||
|
||||
Personalities.push_back(Personality);
|
||||
// If this is the first personality we're adding go
|
||||
// ahead and add it at the beginning.
|
||||
if (Personalities[0] == NULL)
|
||||
Personalities[0] = Personality;
|
||||
else
|
||||
Personalities.push_back(Personality);
|
||||
}
|
||||
|
||||
/// addCatchTypeInfo - Provide the catch typeinfo for a landing pad.
|
||||
|
Reference in New Issue
Block a user