mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Rename DwarfException methods so the new names are consistent with DwarfDebug and the style guide
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -52,21 +52,21 @@ ARMTargetStreamer &ARMException::getTargetStreamer() {
|
|||||||
return static_cast<ARMTargetStreamer &>(TS);
|
return static_cast<ARMTargetStreamer &>(TS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARMException::EndModule() {
|
void ARMException::endModule() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes it's
|
/// beginFunction - Gather pre-function exception information. Assumes it's
|
||||||
/// being emitted immediately after the function entry point.
|
/// being emitted immediately after the function entry point.
|
||||||
void ARMException::BeginFunction(const MachineFunction *MF) {
|
void ARMException::beginFunction(const MachineFunction *MF) {
|
||||||
getTargetStreamer().emitFnStart();
|
getTargetStreamer().emitFnStart();
|
||||||
if (Asm->MF->getFunction()->needsUnwindTableEntry())
|
if (Asm->MF->getFunction()->needsUnwindTableEntry())
|
||||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_begin",
|
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_begin",
|
||||||
Asm->getFunctionNumber()));
|
Asm->getFunctionNumber()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
///
|
///
|
||||||
void ARMException::EndFunction() {
|
void ARMException::endFunction() {
|
||||||
ARMTargetStreamer &ATS = getTargetStreamer();
|
ARMTargetStreamer &ATS = getTargetStreamer();
|
||||||
if (!Asm->MF->getFunction()->needsUnwindTableEntry())
|
if (!Asm->MF->getFunction()->needsUnwindTableEntry())
|
||||||
ATS.emitCantUnwind();
|
ATS.emitCantUnwind();
|
||||||
|
@ -484,7 +484,7 @@ void AsmPrinter::EmitFunctionHeader() {
|
|||||||
// Emit pre-function debug and/or EH information.
|
// Emit pre-function debug and/or EH information.
|
||||||
if (DE) {
|
if (DE) {
|
||||||
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||||
DE->BeginFunction(MF);
|
DE->beginFunction(MF);
|
||||||
}
|
}
|
||||||
if (DD) {
|
if (DD) {
|
||||||
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
NamedRegionTimer T(DbgTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||||
@ -818,7 +818,7 @@ void AsmPrinter::EmitFunctionBody() {
|
|||||||
}
|
}
|
||||||
if (DE) {
|
if (DE) {
|
||||||
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||||
DE->EndFunction();
|
DE->endFunction();
|
||||||
}
|
}
|
||||||
MMI->EndFunction();
|
MMI->EndFunction();
|
||||||
|
|
||||||
@ -910,7 +910,7 @@ bool AsmPrinter::doFinalization(Module &M) {
|
|||||||
if (DE) {
|
if (DE) {
|
||||||
{
|
{
|
||||||
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||||
DE->EndModule();
|
DE->endModule();
|
||||||
}
|
}
|
||||||
delete DE; DE = 0;
|
delete DE; DE = 0;
|
||||||
}
|
}
|
||||||
|
@ -46,9 +46,9 @@ DwarfCFIException::DwarfCFIException(AsmPrinter *A)
|
|||||||
|
|
||||||
DwarfCFIException::~DwarfCFIException() {}
|
DwarfCFIException::~DwarfCFIException() {}
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
void DwarfCFIException::EndModule() {
|
void DwarfCFIException::endModule() {
|
||||||
if (moveTypeModule == AsmPrinter::CFI_M_Debug)
|
if (moveTypeModule == AsmPrinter::CFI_M_Debug)
|
||||||
Asm->OutStreamer.EmitCFISections(false, true);
|
Asm->OutStreamer.EmitCFISections(false, true);
|
||||||
|
|
||||||
@ -82,9 +82,9 @@ void DwarfCFIException::EndModule() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes it's
|
/// beginFunction - Gather pre-function exception information. Assumes it's
|
||||||
/// being emitted immediately after the function entry point.
|
/// being emitted immediately after the function entry point.
|
||||||
void DwarfCFIException::BeginFunction(const MachineFunction *MF) {
|
void DwarfCFIException::beginFunction(const MachineFunction *MF) {
|
||||||
shouldEmitMoves = shouldEmitPersonality = shouldEmitLSDA = false;
|
shouldEmitMoves = shouldEmitPersonality = shouldEmitLSDA = false;
|
||||||
|
|
||||||
// If any landing pads survive, we need an EH table.
|
// If any landing pads survive, we need an EH table.
|
||||||
@ -135,9 +135,9 @@ void DwarfCFIException::BeginFunction(const MachineFunction *MF) {
|
|||||||
LSDAEncoding);
|
LSDAEncoding);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
///
|
///
|
||||||
void DwarfCFIException::EndFunction() {
|
void DwarfCFIException::endFunction() {
|
||||||
if (!shouldEmitPersonality && !shouldEmitMoves)
|
if (!shouldEmitPersonality && !shouldEmitMoves)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -717,20 +717,20 @@ void DwarfException::EmitTypeInfos(unsigned TTypeEncoding) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
void DwarfException::EndModule() {
|
void DwarfException::endModule() {
|
||||||
llvm_unreachable("Should be implemented");
|
llvm_unreachable("Should be implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes it's
|
/// beginFunction - Gather pre-function exception information. Assumes it's
|
||||||
/// being emitted immediately after the function entry point.
|
/// being emitted immediately after the function entry point.
|
||||||
void DwarfException::BeginFunction(const MachineFunction *MF) {
|
void DwarfException::beginFunction(const MachineFunction *MF) {
|
||||||
llvm_unreachable("Should be implemented");
|
llvm_unreachable("Should be implemented");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
///
|
///
|
||||||
void DwarfException::EndFunction() {
|
void DwarfException::endFunction() {
|
||||||
llvm_unreachable("Should be implemented");
|
llvm_unreachable("Should be implemented");
|
||||||
}
|
}
|
||||||
|
@ -130,16 +130,16 @@ public:
|
|||||||
DwarfException(AsmPrinter *A);
|
DwarfException(AsmPrinter *A);
|
||||||
virtual ~DwarfException();
|
virtual ~DwarfException();
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
virtual void EndModule();
|
virtual void endModule();
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes being
|
/// beginFunction - Gather pre-function exception information. Assumes being
|
||||||
/// emitted immediately after the function entry point.
|
/// emitted immediately after the function entry point.
|
||||||
virtual void BeginFunction(const MachineFunction *MF);
|
virtual void beginFunction(const MachineFunction *MF);
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
virtual void EndFunction();
|
virtual void endFunction();
|
||||||
};
|
};
|
||||||
|
|
||||||
class DwarfCFIException : public DwarfException {
|
class DwarfCFIException : public DwarfException {
|
||||||
@ -164,16 +164,16 @@ public:
|
|||||||
DwarfCFIException(AsmPrinter *A);
|
DwarfCFIException(AsmPrinter *A);
|
||||||
virtual ~DwarfCFIException();
|
virtual ~DwarfCFIException();
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
virtual void EndModule();
|
virtual void endModule();
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes being
|
/// beginFunction - Gather pre-function exception information. Assumes being
|
||||||
/// emitted immediately after the function entry point.
|
/// emitted immediately after the function entry point.
|
||||||
virtual void BeginFunction(const MachineFunction *MF);
|
virtual void beginFunction(const MachineFunction *MF);
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
virtual void EndFunction();
|
virtual void endFunction();
|
||||||
};
|
};
|
||||||
|
|
||||||
class ARMException : public DwarfException {
|
class ARMException : public DwarfException {
|
||||||
@ -187,16 +187,16 @@ public:
|
|||||||
ARMException(AsmPrinter *A);
|
ARMException(AsmPrinter *A);
|
||||||
virtual ~ARMException();
|
virtual ~ARMException();
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
virtual void EndModule();
|
virtual void endModule();
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes being
|
/// beginFunction - Gather pre-function exception information. Assumes being
|
||||||
/// emitted immediately after the function entry point.
|
/// emitted immediately after the function entry point.
|
||||||
virtual void BeginFunction(const MachineFunction *MF);
|
virtual void beginFunction(const MachineFunction *MF);
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
virtual void EndFunction();
|
virtual void endFunction();
|
||||||
};
|
};
|
||||||
|
|
||||||
class Win64Exception : public DwarfException {
|
class Win64Exception : public DwarfException {
|
||||||
@ -219,16 +219,16 @@ public:
|
|||||||
Win64Exception(AsmPrinter *A);
|
Win64Exception(AsmPrinter *A);
|
||||||
virtual ~Win64Exception();
|
virtual ~Win64Exception();
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
virtual void EndModule();
|
virtual void endModule();
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes being
|
/// beginFunction - Gather pre-function exception information. Assumes being
|
||||||
/// emitted immediately after the function entry point.
|
/// emitted immediately after the function entry point.
|
||||||
virtual void BeginFunction(const MachineFunction *MF);
|
virtual void beginFunction(const MachineFunction *MF);
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
virtual void EndFunction();
|
virtual void endFunction();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace llvm
|
} // End of namespace llvm
|
||||||
|
@ -44,14 +44,14 @@ Win64Exception::Win64Exception(AsmPrinter *A)
|
|||||||
|
|
||||||
Win64Exception::~Win64Exception() {}
|
Win64Exception::~Win64Exception() {}
|
||||||
|
|
||||||
/// EndModule - Emit all exception information that should come after the
|
/// endModule - Emit all exception information that should come after the
|
||||||
/// content.
|
/// content.
|
||||||
void Win64Exception::EndModule() {
|
void Win64Exception::endModule() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// BeginFunction - Gather pre-function exception information. Assumes it's
|
/// beginFunction - Gather pre-function exception information. Assumes it's
|
||||||
/// being emitted immediately after the function entry point.
|
/// being emitted immediately after the function entry point.
|
||||||
void Win64Exception::BeginFunction(const MachineFunction *MF) {
|
void Win64Exception::beginFunction(const MachineFunction *MF) {
|
||||||
shouldEmitMoves = shouldEmitPersonality = shouldEmitLSDA = false;
|
shouldEmitMoves = shouldEmitPersonality = shouldEmitLSDA = false;
|
||||||
|
|
||||||
// If any landing pads survive, we need an EH table.
|
// If any landing pads survive, we need an EH table.
|
||||||
@ -86,9 +86,9 @@ void Win64Exception::BeginFunction(const MachineFunction *MF) {
|
|||||||
Asm->getFunctionNumber()));
|
Asm->getFunctionNumber()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EndFunction - Gather and emit post-function exception information.
|
/// endFunction - Gather and emit post-function exception information.
|
||||||
///
|
///
|
||||||
void Win64Exception::EndFunction() {
|
void Win64Exception::endFunction() {
|
||||||
if (!shouldEmitPersonality && !shouldEmitMoves)
|
if (!shouldEmitPersonality && !shouldEmitMoves)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user