mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Move c'tor/d'tor to top of file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,6 +32,20 @@ static TimerGroup &getDwarfTimerGroup() {
|
|||||||
return DwarfTimerGroup;
|
return DwarfTimerGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DwarfException::DwarfException(raw_ostream &OS, AsmPrinter *A,
|
||||||
|
const TargetAsmInfo *T)
|
||||||
|
: Dwarf(OS, A, T, "eh"), shouldEmitTable(false), shouldEmitMoves(false),
|
||||||
|
shouldEmitTableModule(false), shouldEmitMovesModule(false),
|
||||||
|
ExceptionTimer(0) {
|
||||||
|
if (TimePassesIsEnabled)
|
||||||
|
ExceptionTimer = new Timer("Dwarf Exception Writer",
|
||||||
|
getDwarfTimerGroup());
|
||||||
|
}
|
||||||
|
|
||||||
|
DwarfException::~DwarfException() {
|
||||||
|
delete ExceptionTimer;
|
||||||
|
}
|
||||||
|
|
||||||
void DwarfException::EmitCommonEHFrame(const Function *Personality,
|
void DwarfException::EmitCommonEHFrame(const Function *Personality,
|
||||||
unsigned Index) {
|
unsigned Index) {
|
||||||
// Size and sign of stack growth.
|
// Size and sign of stack growth.
|
||||||
@@ -612,23 +626,6 @@ void DwarfException::EmitExceptionTable() {
|
|||||||
Asm->EmitAlignment(2, 0, 0, false);
|
Asm->EmitAlignment(2, 0, 0, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
|
||||||
// Main entry points.
|
|
||||||
//
|
|
||||||
DwarfException::DwarfException(raw_ostream &OS, AsmPrinter *A,
|
|
||||||
const TargetAsmInfo *T)
|
|
||||||
: Dwarf(OS, A, T, "eh"), shouldEmitTable(false), shouldEmitMoves(false),
|
|
||||||
shouldEmitTableModule(false), shouldEmitMovesModule(false),
|
|
||||||
ExceptionTimer(0) {
|
|
||||||
if (TimePassesIsEnabled)
|
|
||||||
ExceptionTimer = new Timer("Dwarf Exception Writer",
|
|
||||||
getDwarfTimerGroup());
|
|
||||||
}
|
|
||||||
|
|
||||||
DwarfException::~DwarfException() {
|
|
||||||
delete ExceptionTimer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// 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() {
|
||||||
|
Reference in New Issue
Block a user