[flang-commits] [clang] [flang] [flang][Driver] Support -gsplit-dwarf. (PR #160540)

Abid Qadeer via flang-commits flang-commits at lists.llvm.org
Fri Sep 26 03:03:57 PDT 2025


================
@@ -8437,6 +8437,10 @@ def dependent_lib : Joined<["--"], "dependent-lib=">,
   HelpText<"Add dependent library">,
   MarshallingInfoStringVector<CodeGenOpts<"DependentLibraries">>;
 
+def split_dwarf_file : Separate<["-"], "split-dwarf-file">,
+  HelpText<"Name of the split dwarf debug info file to encode in the object file">,
----------------
abidh wrote:

Some background on how this works. Split dwarf means that part of the dwarf which don't need relocations are put in separate sections (generally they have .dwo in the name). These sections could be put in the same object file (-gsplit-dwarf=single) with rest of the sections or in separate file (-gslit-dwarf=split). 

This help string could certainly be improved. I will  try to do that in a separate PR as it will need broader agreement on the wording.

https://github.com/llvm/llvm-project/pull/160540


More information about the flang-commits mailing list