llvm.org GIT mirror llvm / 5ea14cb
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329326 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 1 year, 5 months ago
2 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
10571057 if (auto EC = S.getName(SectionName))
10581058 return errorCodeToError(EC);
10591059
1060 if (SectionName != ".debug$T")
1060 // .debug$T is a standard CodeView type section, while .debug$P is the same
1061 // format but used for MSVC precompiled header object files.
1062 if (SectionName == ".debug$T")
1063 printHeader(P, "Types (.debug$T)");
1064 else if (SectionName == ".debug$P")
1065 printHeader(P, "Precompiled Types (.debug$P)");
1066 else
10611067 continue;
1068
10621069 StringRef Contents;
10631070 if (auto EC = S.getContents(Contents))
10641071 return errorCodeToError(EC);
901901 for (const SectionRef &S : Obj->sections()) {
902902 StringRef SectionName;
903903 error(S.getName(SectionName));
904 if (SectionName == ".debug$T")
904 // .debug$T is a standard CodeView type section, while .debug$P is the same
905 // format but used for MSVC precompiled header object files.
906 if (SectionName == ".debug$T" || SectionName == ".debug$P")
905907 printCodeViewTypeSection(SectionName, S);
906908 }
907909 for (const SectionRef &S : Obj->sections()) {