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

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 10:51:35 PDT 2025


================
@@ -898,7 +898,19 @@ static void generateMachineCodeOrAssemblyImpl(clang::DiagnosticsEngine &diags,
   llvm::CodeGenFileType cgft = (act == BackendActionTy::Backend_EmitAssembly)
                                    ? llvm::CodeGenFileType::AssemblyFile
                                    : llvm::CodeGenFileType::ObjectFile;
-  if (tm.addPassesToEmitFile(codeGenPasses, os, nullptr, cgft)) {
+  std::unique_ptr<llvm::ToolOutputFile> DwoOS;
----------------
tarunprabhu wrote:

Variable naming in flang is stricter about use of camel-case than clang. Is the capital D here significant enough to justify an exception?

```suggestion
  std::unique_ptr<llvm::ToolOutputFile> dwoOS;
```

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


More information about the cfe-commits mailing list