[llvm-commits] [llvm] r71828 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
Bill Wendling
isanbard at gmail.com
Thu May 14 18:19:04 PDT 2009
Author: void
Date: Thu May 14 20:18:50 2009
New Revision: 71828
URL: http://llvm.org/viewvc/llvm-project?rev=71828&view=rev
Log:
Move c'tor/d'tor to top of file.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp?rev=71828&r1=71827&r2=71828&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfException.cpp Thu May 14 20:18:50 2009
@@ -32,6 +32,20 @@
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 @@
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() {
More information about the llvm-commits
mailing list