diff options
author | Paul Robinson <paul.robinson@sony.com> | 2018-01-09 23:31:48 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2018-01-09 23:31:48 +0000 |
commit | 29f5f987f1b76b5c43310b2062c9f447667a4f80 (patch) | |
tree | e19e9304ed5003b04e3a2a2b88c3c833df6a6c1e /llvm/lib/MC/MCStreamer.cpp | |
parent | d72f78e7c8d6dbef66cdbee0292237c68d780160 (diff) | |
download | llvm-29f5f987f1b76b5c43310b2062c9f447667a4f80.zip llvm-29f5f987f1b76b5c43310b2062c9f447667a4f80.tar.gz llvm-29f5f987f1b76b5c43310b2062c9f447667a4f80.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index af1fc52..a678427 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -194,8 +194,10 @@ void MCStreamer::EmitZeros(uint64_t NumBytes) { unsigned MCStreamer::EmitDwarfFileDirective(unsigned FileNo, StringRef Directory, - StringRef Filename, unsigned CUID) { - return getContext().getDwarfFile(Directory, Filename, FileNo, CUID); + StringRef Filename, + MD5::MD5Result *Checksum, + unsigned CUID) { + return getContext().getDwarfFile(Directory, Filename, FileNo, Checksum, CUID); } void MCStreamer::EmitDwarfLocDirective(unsigned FileNo, unsigned Line, |