Verify that MachineMemOperand alignment is a non-zero power of 2.
[oota-llvm.git] / lib / CodeGen / DwarfWriter.cpp
index 2d0a1142027adef150bfa0a1fccec8e900ce4e72..8ce689f0af4941fd56a033646e9caec1da6d9375 100644 (file)
@@ -2720,8 +2720,6 @@ public:
   /// content.
   void BeginModule(Module *M) {
     this->M = M;
-    
-    if (!ShouldEmitDwarf()) return;
   }
 
   /// EndModule - Emit all Dwarf sections that should come after the content.
@@ -3512,9 +3510,7 @@ public:
         shouldEmitTable = true;
 
       // See if we need frame move info.
-      if ((MMI->hasDebugInfo() && TAI->doesDebugInfoRequireFrameMoveInfo()) || 
-          !MF->getFunction()->doesNotThrow() ||
-          UnwindTablesMandatory)
+      if (!MF->getFunction()->doesNotThrow() || UnwindTablesMandatory)
         shouldEmitMoves = true;
 
       if (shouldEmitMoves || shouldEmitTable)