Fixed the comment. No functionality change.
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfWriter.cpp
index 8dc7c4c47907c7c556ac97f97287ccfddbd32506..4120d9f917105721e3490c31557a796218456ff1 100644 (file)
@@ -3135,13 +3135,13 @@ public:
   /// BeginFunction - Gather pre-function debug information.  Assumes being
   /// emitted immediately after the function entry point.
   void BeginFunction(MachineFunction *MF) {
+    this->MF = MF;
+
     if (!ShouldEmitDwarfDebug()) return;
 
     if (TimePassesIsEnabled)
       DebugTimer->startTimer();
 
-    this->MF = MF;
-
     // Begin accumulating function debug information.
     MMI->BeginFunction(MF);