[PATCH] D92617: [DWARF] Allow toolchain to adjust specified DWARF version.
    David Blaikie via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Dec  3 16:52:05 PST 2020
    
    
  
dblaikie added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:3957
+  RenderDebugEnablingArgs(Args, CmdArgs, DebugInfoKind,
+                          std::min(DWARFVersion, TC.getMaxDwarfVersion()),
                           DebuggerTuning);
----------------
I think, ideally, the DWARFVersion calculation would happen up `if (EmitDwarf) {` block where all default and explicit dwarf version calculations are done.
I guess it's not done that way because of the gembed-source error path? 
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92617/new/
https://reviews.llvm.org/D92617
    
    
More information about the cfe-commits
mailing list