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 | 0530f42b442cdcca775f7163b95b5b0d99a4a9b4 (patch) | |
| tree | 15c21525c64bb8035bbdf48ca5159c10137c1e63 /lib/CodeGen/AsmPrinter | |
| parent | 1b43db78c5c5354f666bce235202615398cd49d0 (diff) | |
| download | external_llvm-0530f42b442cdcca775f7163b95b5b0d99a4a9b4.zip external_llvm-0530f42b442cdcca775f7163b95b5b0d99a4a9b4.tar.gz external_llvm-0530f42b442cdcca775f7163b95b5b0d99a4a9b4.tar.bz2 | |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index b68f521..37466ab 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/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() { |
