[llvm] [dsymutil] Add support for inline DWARF source files. (PR #77016)

Felipe de Azevedo Piovezan via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 15:11:08 PST 2024


================
@@ -859,13 +859,19 @@ void DwarfStreamer::emitLineTablePrologueV5IncludeAndFileTable(
   for (auto Include : P.IncludeDirectories)
     emitLineTableString(P, Include, DebugStrPool, DebugLineStrPool);
 
+  bool InlineSources =
+      std::any_of(P.FileNames.begin(), P.FileNames.end(), [](auto File) {
----------------
felipepiovezan wrote:

Nit: Here we would generally prefer STLExtras range-based algorithms over std ones:

`any_of(P.FileNames, [](){...})`

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


More information about the llvm-commits mailing list