summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-09-21 22:36:04 +0000
committerZachary Turner <zturner@google.com>2018-09-21 22:36:04 +0000
commit355ffb0032182e74f64349dc7e4b941147bac2a2 (patch)
tree94e7412254a486f98b5faf0ee6e0c8ae58ead533 /llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
parent10febb0779ec74ed9090bcc11667567910a807d5 (diff)
downloadbcm5719-llvm-355ffb0032182e74f64349dc7e4b941147bac2a2.tar.gz
bcm5719-llvm-355ffb0032182e74f64349dc7e4b941147bac2a2.zip
[PDB] Add native reading support for UDT / class types.
This allows the native reader to find records of class/struct/ union type and dump them. This behavior is tested by using the diadump subcommand against golden output produced by actual DIA SDK on the same PDB file, and again using pretty -native to confirm that we actually dump the classes. We don't find class members or anything like that yet, for now it's just the class itself. llvm-svn: 342779
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
index 97d20d4d3bb..ca173808358 100644
--- a/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
@@ -45,6 +45,10 @@ NativeExeSymbol::findChildren(PDB_SymType Type) const {
return Session.getSymbolCache().createTypeEnumerator(codeview::LF_ENUM);
case PDB_SymType::PointerType:
return Session.getSymbolCache().createTypeEnumerator(codeview::LF_POINTER);
+ case PDB_SymType::UDT:
+ return Session.getSymbolCache().createTypeEnumerator(
+ {codeview::LF_STRUCTURE, codeview::LF_CLASS, codeview::LF_UNION,
+ codeview::LF_INTERFACE});
default:
break;
}
OpenPOWER on IntegriCloud