summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-04-05 18:18:12 +0000
committerZachary Turner <zturner@google.com>2018-04-05 18:18:12 +0000
commit5ca44e318fc08270c8906adc1119dee2cc2d0b3a (patch)
tree1925b4f9c9216545f5057090275f1a05652bff8b /llvm/tools/llvm-readobj
parent8e86fc4049b80760f0d125105c2709b8e02a1bd9 (diff)
downloadbcm5719-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-readobj')
-rw-r--r--llvm/tools/llvm-readobj/COFFDumper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp
index 5d6bcc65baf..2567d6dc159 100644
--- a/llvm/tools/llvm-readobj/COFFDumper.cpp
+++ b/llvm/tools/llvm-readobj/COFFDumper.cpp
@@ -902,7 +902,9 @@ void COFFDumper::printCodeViewDebugInfo() {
for (const SectionRef &S : Obj->sections()) {
StringRef SectionName;
error(S.getName(SectionName));
- 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" || SectionName == ".debug$P")
printCodeViewTypeSection(SectionName, S);
}
for (const SectionRef &S : Obj->sections()) {
OpenPOWER on IntegriCloud