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

Tom Eccles via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 14:47:38 PDT 2025


================
@@ -131,20 +135,57 @@ void Flang::addOtherOptions(const ArgList &Args, ArgStringList &CmdArgs) const {
                    options::OPT_finstrument_functions});
 
   llvm::codegenoptions::DebugInfoKind DebugInfoKind;
+  bool hasDwarfNArg = getDwarfNArg(Args) != nullptr;
----------------
tblah wrote:

Not strictly necessary no because nullptr will be 0==false, but I think this is easier to understand at a glance.

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


More information about the cfe-commits mailing list