summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorEric Beckmann <ecbeckmann@google.com>2017-09-15 18:20:28 +0000
committerEric Beckmann <ecbeckmann@google.com>2017-09-15 18:20:28 +0000
commit349746f044302eb4c793fbcb7e5fdbada6858cd9 (patch)
tree57e78e99ba81d5dfd769ff3765336e5a44311cfc /llvm/lib/MC/MCObjectStreamer.cpp
parent7a183e27601d5241978c940f2381fe745d7bdbfb (diff)
downloadbcm5719-llvm-349746f044302eb4c793fbcb7e5fdbada6858cd9.tar.gz
bcm5719-llvm-349746f044302eb4c793fbcb7e5fdbada6858cd9.zip
Fix Bug 30978 by emitting cv file checksums.
Summary: The checksums had already been placed in the IR, this patch allows MCCodeView to actually write it out to an MCStreamer. Subscribers: llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D37157 llvm-svn: 313374
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp3
1 files changed, 3 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud