diff options
| author | Zachary Turner <zturner@google.com> | 2018-04-05 18:18:12 +0000 | 
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-04-05 18:18:12 +0000 | 
| commit | 5ca44e318fc08270c8906adc1119dee2cc2d0b3a (patch) | |
| tree | 1925b4f9c9216545f5057090275f1a05652bff8b /llvm/tools/llvm-pdbutil | |
| parent | 8e86fc4049b80760f0d125105c2709b8e02a1bd9 (diff) | |
| download | bcm5719-llvm-5ca44e318fc08270c8906adc1119dee2cc2d0b3a.tar.gz bcm5719-llvm-5ca44e318fc08270c8906adc1119dee2cc2d0b3a.zip  | |
[llvm-pdbutil] Display types from MSVC precompiled header object files.
These appear in a .debug$P section, which is exactly the same in
format as a .debug$T section.  So we shouldn't ignore these when
dumping types.
llvm-svn: 329326
Diffstat (limited to 'llvm/tools/llvm-pdbutil')
| -rw-r--r-- | llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp b/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp index 111dcfba9af..eec1a744500 100644 --- a/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp +++ b/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp @@ -1058,8 +1058,15 @@ Error DumpOutputStyle::dumpTypesFromObjectFile() {      if (auto EC = S.getName(SectionName))        return errorCodeToError(EC); -    if (SectionName != ".debug$T") +    // .debug$T is a standard CodeView type section, while .debug$P is the same +    // format but used for MSVC precompiled header object files. +    if (SectionName == ".debug$T") +      printHeader(P, "Types (.debug$T)"); +    else if (SectionName == ".debug$P") +      printHeader(P, "Precompiled Types (.debug$P)"); +    else        continue; +      StringRef Contents;      if (auto EC = S.getContents(Contents))        return errorCodeToError(EC);  | 

