[DWARFv5] MC support for MD5 file checksums
Extend .file directive syntax to allow specifying an MD5 checksum for
the source file. Emit the checksums in DWARF v5 line tables.
llvm-svn: 322134
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
index 4cc01b3..43b23f4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
@@ -308,7 +308,8 @@
/// Look up the source ID with the given directory and source file names. If
/// none currently exists, create a new ID and insert it in the line table.
- virtual unsigned getOrCreateSourceID(StringRef File, StringRef Directory) = 0;
+ virtual unsigned getOrCreateSourceID(StringRef File, StringRef Directory,
+ MD5::MD5Result *Checksum) = 0;
/// Look in the DwarfDebug map for the MDNode that corresponds to the
/// reference.
@@ -358,7 +359,8 @@
DwarfCompileUnit &CU;
MCDwarfDwoLineTable *SplitLineTable;
- unsigned getOrCreateSourceID(StringRef File, StringRef Directory) override;
+ unsigned getOrCreateSourceID(StringRef File, StringRef Directory,
+ MD5::MD5Result *Checksum) override;
bool isDwoUnit() const override;
public: