mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Rename functions to something more descriptive. At the very least mention the
CIE and FDE in their names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5fee49eff9
commit
a6f91da8b2
@ -49,7 +49,10 @@ DwarfException::~DwarfException() {
|
||||
delete ExceptionTimer;
|
||||
}
|
||||
|
||||
void DwarfException::EmitCommonEHFrame(const Function *Personality,
|
||||
/// EmitCommonInformationEntry - Emit a Common Information Entry (CIE). This
|
||||
/// holds information that is shared among many Frame Description Entries.
|
||||
/// There is at least one CIE in every non-empty .debug_frame section.
|
||||
void DwarfException::EmitCommonInformationEntry(const Function *Personality,
|
||||
unsigned Index) {
|
||||
// Size and sign of stack growth.
|
||||
int stackGrowth =
|
||||
@ -144,9 +147,10 @@ void DwarfException::EmitCommonEHFrame(const Function *Personality,
|
||||
Asm->EOL();
|
||||
}
|
||||
|
||||
/// EmitEHFrame - Emit function exception frame information.
|
||||
///
|
||||
void DwarfException::EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo) {
|
||||
/// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
|
||||
/// function.
|
||||
void DwarfException::
|
||||
EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo) {
|
||||
assert(!EHFrameInfo.function->hasAvailableExternallyLinkage() &&
|
||||
"Should not emit 'available externally' functions at all");
|
||||
|
||||
@ -844,11 +848,11 @@ void DwarfException::EndModule() {
|
||||
if (shouldEmitMovesModule || shouldEmitTableModule) {
|
||||
const std::vector<Function *> Personalities = MMI->getPersonalities();
|
||||
for (unsigned i = 0; i < Personalities.size(); ++i)
|
||||
EmitCommonEHFrame(Personalities[i], i);
|
||||
EmitCommonInformationEntry(Personalities[i], i);
|
||||
|
||||
for (std::vector<FunctionEHFrameInfo>::iterator I = EHFrames.begin(),
|
||||
E = EHFrames.end(); I != E; ++I)
|
||||
EmitEHFrame(*I);
|
||||
EmitFrameDescriptionEntry(*I);
|
||||
}
|
||||
|
||||
if (TimePassesIsEnabled)
|
||||
|
@ -70,13 +70,14 @@ class VISIBILITY_HIDDEN DwarfException : public Dwarf {
|
||||
/// ExceptionTimer - Timer for the Dwarf exception writer.
|
||||
Timer *ExceptionTimer;
|
||||
|
||||
/// EmitCommonEHFrame - Emit the common eh unwind frame.
|
||||
///
|
||||
void EmitCommonEHFrame(const Function *Personality, unsigned Index);
|
||||
/// EmitCommonInformationEntry - Emit a Common Information Entry (CIE). This
|
||||
/// holds information that is shared among many Frame Description Entries.
|
||||
/// There is at least one CIE in every non-empty .debug_frame section.
|
||||
void EmitCommonInformationEntry(const Function *Personality, unsigned Index);
|
||||
|
||||
/// EmitEHFrame - Emit function exception frame information.
|
||||
///
|
||||
void EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo);
|
||||
/// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
|
||||
/// function.
|
||||
void EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo);
|
||||
|
||||
/// EmitExceptionTable - Emit landing pads and actions.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user