diff options
| author | Eric Christopher <echristo@gmail.com> | 2013-09-27 22:50:48 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2013-09-27 22:50:48 +0000 |
| commit | a51d3fc721a6d0482e22e311b645e771d6ef19b0 (patch) | |
| tree | 4071622d504833cea1ab693bbc561b3a1cec8b2b /llvm/lib/CodeGen/AsmPrinter | |
| parent | 473933b89fd4b38530b3d2d791ddf723d52b9b10 (diff) | |
| download | bcm5719-llvm-a51d3fc721a6d0482e22e311b645e771d6ef19b0.tar.gz bcm5719-llvm-a51d3fc721a6d0482e22e311b645e771d6ef19b0.zip | |
Unify conditionals and reformat.
llvm-svn: 191582
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index a3d2dedfbcf..b4e0055fbc2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -754,32 +754,32 @@ CompileUnit *DwarfDebug::constructCompileUnit(const MDNode *N) { Asm->OutStreamer.getKind() == MCStreamer::SK_AsmStreamer) || (NewCU->getUniqueID() == 0); - // DW_AT_stmt_list is a offset of line number information for this - // compile unit in debug_line section. For split dwarf this is - // left in the skeleton CU and so not included. - // The line table entries are not always emitted in assembly, so it - // is not okay to use line_table_start here. if (!useSplitDwarf()) { + // DW_AT_stmt_list is a offset of line number information for this + // compile unit in debug_line section. For split dwarf this is + // left in the skeleton CU and so not included. + // The line table entries are not always emitted in assembly, so it + // is not okay to use line_table_start here. if (Asm->MAI->doesDwarfUseRelocationsAcrossSections()) NewCU->addLabel(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_sec_offset, - UseTheFirstCU ? - Asm->GetTempSymbol("section_line") : LineTableStartSym); + UseTheFirstCU ? Asm->GetTempSymbol("section_line") + : LineTableStartSym); else if (UseTheFirstCU) NewCU->addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0); else NewCU->addDelta(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, LineTableStartSym, DwarfLineSectionSym); - } - // If we're using split dwarf the compilation dir is going to be in the - // skeleton CU and so we don't need to duplicate it here. - if (!useSplitDwarf() && !CompilationDir.empty()) - NewCU->addString(Die, dwarf::DW_AT_comp_dir, CompilationDir); + // If we're using split dwarf the compilation dir is going to be in the + // skeleton CU and so we don't need to duplicate it here. + if (!CompilationDir.empty()) + NewCU->addString(Die, dwarf::DW_AT_comp_dir, CompilationDir); - // Flag to let the linker know we have emitted new style pubnames. Only - // emit it here if we don't have a skeleton CU for split dwarf. - if (!useSplitDwarf() && GenerateGnuPubSections) - NewCU->addFlag(Die, dwarf::DW_AT_GNU_pubnames); + // Flag to let the linker know we have emitted new style pubnames. Only + // emit it here if we don't have a skeleton CU for split dwarf. + if (GenerateGnuPubSections) + NewCU->addFlag(Die, dwarf::DW_AT_GNU_pubnames); + } if (DIUnit.isOptimized()) NewCU->addFlag(Die, dwarf::DW_AT_APPLE_optimized); |

