From 26fa1bf4da3cbae98251ebd2db2dcee37b89120c Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 19 Sep 2017 18:14:45 +0000 Subject: Re-land "Fix Bug 30978 by emitting cv file checksums." This reverts r313431 and brings back r313374 with a fix to write checksums as binary data and not ASCII hex strings. llvm-svn: 313657 --- llvm/lib/MC/MCObjectStreamer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/MC/MCObjectStreamer.cpp') diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index 174397e2739..e9e3133582c 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -426,6 +426,9 @@ void MCObjectStreamer::EmitCVFileChecksumsDirective() { getContext().getCVContext().emitFileChecksums(*this); } +void MCObjectStreamer::EmitCVFileChecksumOffsetDirective(unsigned FileNo) { + getContext().getCVContext().emitFileChecksumOffset(*this, FileNo); +} void MCObjectStreamer::EmitBytes(StringRef Data) { MCCVLineEntry::Make(this); -- cgit v1.2.3