File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
test/tools/llvm-readobj/COFF Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CHECK: AddressOfRawData: 0x5B068
12
12
CHECK: PointerToRawData: 0x5A268
13
13
CHECK: PDBInfo {
14
14
CHECK: PDBSignature: 0x53445352
15
- CHECK: PDBGUID: (96 83 40 42 81 07 9D 40 90 1B 4A 3C 0D 4F 56 32)
15
+ CHECK: PDBGUID: {42408396-0781-409D-901B-4A3C0D4F5632}
16
16
CHECK: PDBAge: 3
17
17
CHECK: PDBFileName: D:\src\llvm\build\has_pdb.pdb
18
18
CHECK: }
Original file line number Diff line number Diff line change 27
27
#include " llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h"
28
28
#include " llvm/DebugInfo/CodeView/DebugLinesSubsection.h"
29
29
#include " llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"
30
+ #include " llvm/DebugInfo/CodeView/Formatters.h"
30
31
#include " llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h"
31
32
#include " llvm/DebugInfo/CodeView/Line.h"
32
33
#include " llvm/DebugInfo/CodeView/MergingTypeTableBuilder.h"
@@ -793,7 +794,10 @@ void COFFDumper::printCOFFDebugDirectory() {
793
794
DictScope PDBScope (W, " PDBInfo" );
794
795
W.printHex (" PDBSignature" , DebugInfo->Signature .CVSignature );
795
796
if (DebugInfo->Signature .CVSignature == OMF::Signature::PDB70) {
796
- W.printBinary (" PDBGUID" , ArrayRef (DebugInfo->PDB70 .Signature ));
797
+ SmallString<38 > FormattedGUIDStr;
798
+ raw_svector_ostream OS (FormattedGUIDStr);
799
+ fmt_guid (DebugInfo->PDB70 .Signature ).format (OS, " " /* Style=unused*/ );
800
+ W.printString (" PDBGUID" , FormattedGUIDStr);
797
801
W.printNumber (" PDBAge" , DebugInfo->PDB70 .Age );
798
802
W.printString (" PDBFileName" , PDBFileName);
799
803
}
You can’t perform that action at this time.
0 commit comments