summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCStreamer.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/MCStreamer.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/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index e35907f77e1..a3756c97a1e 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -224,8 +224,11 @@ void MCStreamer::EnsureValidDwarfFrame() {
report_fatal_error("No open frame");
}
-bool MCStreamer::EmitCVFileDirective(unsigned FileNo, StringRef Filename) {
- return getContext().getCVContext().addFile(FileNo, Filename);
+bool MCStreamer::EmitCVFileDirective(unsigned FileNo, StringRef Filename,
+ StringRef Checksum,
+ unsigned ChecksumKind) {
+ return getContext().getCVContext().addFile(*this, FileNo, Filename, Checksum,
+ ChecksumKind);
}
bool MCStreamer::EmitCVFuncIdDirective(unsigned FunctionId) {
OpenPOWER on IntegriCloud