This is an archive of the discontinued LLVM Phabricator instance.

[Codeview] Add a class for LF_UDT_MOD_SRC_LINE.
ClosedPublic

Authored by ruiu on Jun 15 2016, 1:35 PM.

Details

Summary

I'm going to use this class for the visitor to verify
TPI hash records.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu updated this revision to Diff 60898.Jun 15 2016, 1:35 PM
ruiu retitled this revision from to [Codeview] Add a class for LF_UDT_MOD_SRC_LINE..
ruiu updated this object.
ruiu added a reviewer: zturner.
ruiu added a subscriber: llvm-commits.
ruiu updated this revision to Diff 60903.Jun 15 2016, 1:57 PM
  • Added UdtModSourceLineRecord class.
zturner accepted this revision.Jun 15 2016, 1:58 PM
zturner edited edge metadata.

Since a class is added, you will need to update TypeRecords.def and change this line:

CV_TYPE(LF_UDT_MOD_SRC_LINE, 0x1607)

to this:

TYPE_RECORD(LF_UDT_MOD_SRC_LINE, 0x1607, UdtModSourceLine)

Then you can add the following method to TypeDumper.cpp

void CVTypeDumper::visitUdtModSourceLine(TypeLeafKind Leaf,
                                          UdtModSourceLineRecord &SrcLine) {
}

You can do this now or in a subsequent patch if you like.

This revision is now accepted and ready to land.Jun 15 2016, 1:58 PM

Ahh I see you made that change already. Does the test still pass with this? If it was previously dumping a record that had an LF_UDT_MOD_SRC_LINE, then the format will be different now.

ruiu updated this revision to Diff 60904.Jun 15 2016, 2:15 PM
ruiu edited edge metadata.
  • Updated the test.
This revision was automatically updated to reflect the committed changes.