summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2018-01-09 23:31:48 +0000
committerPaul Robinson <paul.robinson@sony.com>2018-01-09 23:31:48 +0000
commit29f5f987f1b76b5c43310b2062c9f447667a4f80 (patch)
treee19e9304ed5003b04e3a2a2b88c3c833df6a6c1e /llvm/lib/MC/MCContext.cpp
parentd72f78e7c8d6dbef66cdbee0292237c68d780160 (diff)
downloadbcm5719-llvm-29f5f987f1b76b5c43310b2062c9f447667a4f80.tar.gz
bcm5719-llvm-29f5f987f1b76b5c43310b2062c9f447667a4f80.zip
[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/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 5c25e902bbe..ac2e45484ed 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -535,9 +535,10 @@ MCSubtargetInfo &MCContext::getSubtargetCopy(const MCSubtargetInfo &STI) {
/// error and zero is returned and the client reports the error, else the
/// allocated file number is returned. The file numbers may be in any order.
unsigned MCContext::getDwarfFile(StringRef Directory, StringRef FileName,
- unsigned FileNumber, unsigned CUID) {
+ unsigned FileNumber, MD5::MD5Result *Checksum,
+ unsigned CUID) {
MCDwarfLineTable &Table = MCDwarfLineTablesCUMap[CUID];
- return Table.getFile(Directory, FileName, FileNumber);
+ return Table.getFile(Directory, FileName, Checksum, FileNumber);
}
/// isValidDwarfFileNumber - takes a dwarf file number and returns true if it
OpenPOWER on IntegriCloud