[PATCH] D27032: Rely on a single DWARF version instead of having two copies

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 19:41:30 PST 2016


clayborg added a comment.

Added some clarifying comment.



================
Comment at: lib/CodeGen/AsmPrinter/DwarfDebug.cpp:259
   unsigned DwarfVersionNumber = Asm->TM.Options.MCOptions.DwarfVersion;
-  DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber
+  unsigned DwarfVersion = DwarfVersionNumber ? DwarfVersionNumber
                                     : MMI->getModule()->getDwarfVersion();
----------------
Look at all of the code to see how this local DwarfVersion already was being stored into the MCStreamer's MCContext. 


https://reviews.llvm.org/D27032





More information about the llvm-commits mailing list