mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
- Rename EmitCommonInformationEntry to EmitCIE.
- Rename EmitFunctionDescriptionEntry to EmitFDE. llvm-svn: 79981
This commit is contained in:
parent
7d42bfab6c
commit
487ba86a78
@ -49,11 +49,10 @@ DwarfException::~DwarfException() {
|
|||||||
delete ExceptionTimer;
|
delete ExceptionTimer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EmitCommonInformationEntry - Emit a Common Information Entry (CIE). This
|
/// EmitCIE - Emit a Common Information Entry (CIE). This holds information that
|
||||||
/// holds information that is shared among many Frame Description Entries.
|
/// is shared among many Frame Description Entries. There is at least one CIE
|
||||||
/// There is at least one CIE in every non-empty .debug_frame section.
|
/// in every non-empty .debug_frame section.
|
||||||
void DwarfException::EmitCommonInformationEntry(const Function *Personality,
|
void DwarfException::EmitCIE(const Function *Personality, unsigned Index) {
|
||||||
unsigned Index) {
|
|
||||||
// Size and sign of stack growth.
|
// Size and sign of stack growth.
|
||||||
int stackGrowth =
|
int stackGrowth =
|
||||||
Asm->TM.getFrameInfo()->getStackGrowthDirection() ==
|
Asm->TM.getFrameInfo()->getStackGrowthDirection() ==
|
||||||
@ -147,10 +146,8 @@ void DwarfException::EmitCommonInformationEntry(const Function *Personality,
|
|||||||
Asm->EOL();
|
Asm->EOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
|
/// EmitFDE - Emit the Frame Description Entry (FDE) for the function.
|
||||||
/// function.
|
void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
|
||||||
void DwarfException::
|
|
||||||
EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo) {
|
|
||||||
assert(!EHFrameInfo.function->hasAvailableExternallyLinkage() &&
|
assert(!EHFrameInfo.function->hasAvailableExternallyLinkage() &&
|
||||||
"Should not emit 'available externally' functions at all");
|
"Should not emit 'available externally' functions at all");
|
||||||
|
|
||||||
@ -850,11 +847,11 @@ void DwarfException::EndModule() {
|
|||||||
if (shouldEmitMovesModule || shouldEmitTableModule) {
|
if (shouldEmitMovesModule || shouldEmitTableModule) {
|
||||||
const std::vector<Function *> Personalities = MMI->getPersonalities();
|
const std::vector<Function *> Personalities = MMI->getPersonalities();
|
||||||
for (unsigned i = 0; i < Personalities.size(); ++i)
|
for (unsigned i = 0; i < Personalities.size(); ++i)
|
||||||
EmitCommonInformationEntry(Personalities[i], i);
|
EmitCIE(Personalities[i], i);
|
||||||
|
|
||||||
for (std::vector<FunctionEHFrameInfo>::iterator I = EHFrames.begin(),
|
for (std::vector<FunctionEHFrameInfo>::iterator I = EHFrames.begin(),
|
||||||
E = EHFrames.end(); I != E; ++I)
|
E = EHFrames.end(); I != E; ++I)
|
||||||
EmitFrameDescriptionEntry(*I);
|
EmitFDE(*I);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TimePassesIsEnabled)
|
if (TimePassesIsEnabled)
|
||||||
|
@ -70,14 +70,13 @@ class VISIBILITY_HIDDEN DwarfException : public Dwarf {
|
|||||||
/// ExceptionTimer - Timer for the Dwarf exception writer.
|
/// ExceptionTimer - Timer for the Dwarf exception writer.
|
||||||
Timer *ExceptionTimer;
|
Timer *ExceptionTimer;
|
||||||
|
|
||||||
/// EmitCommonInformationEntry - Emit a Common Information Entry (CIE). This
|
/// EmitCIE - Emit a Common Information Entry (CIE). This holds information
|
||||||
/// holds information that is shared among many Frame Description Entries.
|
/// that is shared among many Frame Description Entries. There is at least
|
||||||
/// There is at least one CIE in every non-empty .debug_frame section.
|
/// one CIE in every non-empty .debug_frame section.
|
||||||
void EmitCommonInformationEntry(const Function *Personality, unsigned Index);
|
void EmitCIE(const Function *Personality, unsigned Index);
|
||||||
|
|
||||||
/// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
|
/// EmitFDE - Emit the Frame Description Entry (FDE) for the function.
|
||||||
/// function.
|
void EmitFDE(const FunctionEHFrameInfo &EHFrameInfo);
|
||||||
void EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo);
|
|
||||||
|
|
||||||
/// EmitExceptionTable - Emit landing pads and actions.
|
/// EmitExceptionTable - Emit landing pads and actions.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user