diff options
| author | Bill Wendling <isanbard@gmail.com> | 2009-05-15 01:18:50 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2009-05-15 01:18:50 +0000 |
| commit | dd20b98c3534abee65009c4e31fc6f559ed5f430 (patch) | |
| tree | cf689600b83acbfe6a7ac45721722f8eb2908a70 /llvm/lib/CodeGen | |
| parent | d64cd2bb6e048a9a7b9b246433716ee0b073500c (diff) | |
| download | bcm5719-llvm-dd20b98c3534abee65009c4e31fc6f559ed5f430.tar.gz bcm5719-llvm-dd20b98c3534abee65009c4e31fc6f559ed5f430.zip | |
Move c'tor/d'tor to top of file.
llvm-svn: 71828
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index b68f5213d1c..37466ab39a2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -32,6 +32,20 @@ static TimerGroup &getDwarfTimerGroup() { 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, unsigned Index) { // Size and sign of stack growth. @@ -612,23 +626,6 @@ void DwarfException::EmitExceptionTable() { 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 /// content. void DwarfException::EndModule() { |

