[llvm] [DWARFLinker] Support MD5 checksums in the line table (PR #77151)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 16:38:04 PST 2024
================
@@ -859,18 +859,20 @@ void DwarfStreamer::emitLineTablePrologueV5IncludeAndFileTable(
for (auto Include : P.IncludeDirectories)
emitLineTableString(P, Include, DebugStrPool, DebugLineStrPool);
- bool InlineSources = any_of(P.FileNames, [](auto &File) {
- auto s = dwarf::toString(File.Source);
- return s && !**s;
- });
+ bool HasChecksums = P.ContentTypes.HasMD5;
+ bool HasInlineSources =
+ P.ContentTypes.HasSource && any_of(P.FileNames, [](auto &File) {
----------------
adrian-prantl wrote:
Oh! If `P.ContentTypes.HasSource` is a thing, we can probably delete the entire any_of expression?
https://github.com/llvm/llvm-project/pull/77151
More information about the llvm-commits
mailing list