llvm.org GIT mirror llvm / 02b1e4b
Fix some tests on Windows. I don't actually have a Windows machine at the present moment, so hopefully this fixes it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343397 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 11 months ago
2 changed file(s) with 4 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
1212
1313 ; RUN: llvm-pdbutil pretty -types -module-syms -globals -exclude-symbols="MemberVar|GlobalVar" \
1414 ; RUN: %p/Inputs/FilterTest.pdb | FileCheck --check-prefix=EXCLUDE_VARS %s
15 ; RUN: llvm-pdbutil pretty -types -exclude-types="FilterTestClass" \
15 ; RUN: llvm-pdbutil pretty -classes -exclude-types="FilterTestClass" \
1616 ; RUN: %p/Inputs/FilterTest.pdb | FileCheck --check-prefix=EXCLUDE_WHOLE_CLASS %s
1717 ; RUN: llvm-pdbutil pretty -module-syms -globals -exclude-compilands="FilterTest.obj" \
1818 ; RUN: %p/Inputs/FilterTest.pdb | FileCheck --check-prefix=EXCLUDE_COMPILAND %s
6767
6868 ; EXCLUDE_WHOLE_CLASS: ---TYPES---
6969 ; EXCLUDE_WHOLE_CLASS-NOT: class FilterTestClass
70 ; EXCLUDE_WHOLE_CLASS-NOT: typedef int NestedTypedef
71 ; EXCLUDE_WHOLE_CLASS-NOT: enum NestedEnum
72 ; EXCLUDE_WHOLE_CLASS-NOT: int IntMemberVar
73 ; EXCLUDE_WHOLE_CLASS-NOT: double DoubleMemberVar
7470
7571 ; EXCLUDE_COMPILAND: ---SYMBOLS---
7672 ; EXCLUDE_COMPILAND-NOT: FilterTest.obj
291291 void TypeDumper::dump(const PDBSymbolTypePointer &Symbol) {
292292 std::unique_ptr P = Symbol.getPointeeType();
293293
294 if (auto *FS = dyn_cast(P.get())) {
294 if (auto *FS = dyn_cast_or_null(P.get())) {
295295 FunctionDumper Dumper(Printer);
296296 FunctionDumper::PointerType PT =
297297 Symbol.isReference() ? FunctionDumper::PointerType::Reference
300300 return;
301301 }
302302
303 if (auto *UDT = dyn_cast(P.get())) {
303 if (auto *UDT = dyn_cast_or_null(P.get())) {
304304 printClassDecl(Printer, *UDT);
305 } else {
305 } else if (P) {
306306 P->dump(*this);
307307 }
308308