X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FDwarfWriter.cpp;h=a5862c9e872b9d2c39428c605adccb28dfa659bb;hb=f4e4629ee8c218f892ad8ae3e182fe40bc160895;hp=2d0a1142027adef150bfa0a1fccec8e900ce4e72;hpb=c04f46567c3ebf64257d8f03e29d80a69606a6bc;p=oota-llvm.git diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 2d0a1142027..a5862c9e872 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -1091,7 +1091,10 @@ public: Asm->EOL("Offset"); } else if (Reg < 64) { Asm->EmitInt8(DW_CFA_offset + Reg); - Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")"); + if (VerboseAsm) + Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")"); + else + Asm->EOL(); Asm->EmitULEB128Bytes(Offset); Asm->EOL("Offset"); } else { @@ -2720,8 +2723,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 +3513,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)