[PATCH] D43627: [DEBUGINFO] Add flag for DWARF2 or less to use sections as references.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 13:22:33 PST 2018

ABataev added inline comments.

Comment at: lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:274
+  const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
+  if (DD->useSectionsAsReferences()) {
+    LineTableStartSym = TLOF.getDwarfLineSection()->getBeginSymbol();
JDevlieghere wrote:
> The LLVM coding standard says not to put braces around single statement blocks. 
Only if there is no `else` branch with multiple line substatement. In this case, both substatements must be enclosed in braces. 



More information about the llvm-commits mailing list