llvm.org GIT mirror llvm / d9438b8
[pdbutil] Print the checksum hex string when using the '-lines' option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329707 91177308-0d34-0410-b5e6-96231b3b80d8 Aaron Smith 1 year, 5 months ago
2 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-pdbutil pretty -lines %p/Inputs/PrettyFuncDumperTest.pdb > %t
1
2 ; CHECK: ---COMPILANDS---
3 ; CHECK: {{.*}}\PrettyFuncDumperTest.obj
4 ; CHECK: {{.*}}\prettyfuncdumpertest.cpp (MD5: E36B273C4D7B3D70C996387C95A6C4F7)
5959 while (auto File = Files->getNext()) {
6060 Printer.NewLine();
6161 WithColor(Printer, PDB_ColorItem::Path).get() << File->getFileName();
62 if (File->getChecksumType() != PDB_Checksum::None) {
63 auto ChecksumType = File->getChecksumType();
64 auto ChecksumHexString = toHex(File->getChecksum());
65 WithColor(Printer, PDB_ColorItem::Comment).get()
66 << " (" << ChecksumType << ": " << ChecksumHexString << ")";
67 }
6268
6369 auto Lines = Session.findLineNumbers(Symbol, *File);
6470 if (!Lines)