diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2018-08-06 19:35:00 +0000 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2018-08-06 19:35:00 +0000 |
commit | 741cc3531a6a372f8b5524362eb7930905e983bb (patch) | |
tree | 0a90eb27065bb21273accebf4ff6dab242e95121 /llvm/test | |
parent | 7c4f4914e34a3844475deb5cc5a9fdd481361d3e (diff) | |
download | bcm5719-llvm-741cc3531a6a372f8b5524362eb7930905e983bb.tar.gz bcm5719-llvm-741cc3531a6a372f8b5524362eb7930905e983bb.zip |
[llvm-pdbutil] Support PDBs without a DBI stream
Differential Revision: https://reviews.llvm.org/D50258
llvm-svn: 339045
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.cpp | 6 | ||||
-rw-r--r-- | llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.pdb | bin | 0 -> 61440 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-pdbdump/type-server-no-dbi.test | 46 |
3 files changed, 52 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.cpp b/llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.cpp new file mode 100644 index 00000000000..140881db38c --- /dev/null +++ b/llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.cpp @@ -0,0 +1,6 @@ +// Compile with "cl /c /Zi TypeServerTest.cpp /FdTypeServerTest.pdb"
+
+int main(void)
+{
+ return 0;
+}
diff --git a/llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.pdb b/llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.pdb Binary files differnew file mode 100644 index 00000000000..83ad052f56f --- /dev/null +++ b/llvm/test/tools/llvm-pdbdump/Inputs/TypeServerTest.pdb diff --git a/llvm/test/tools/llvm-pdbdump/type-server-no-dbi.test b/llvm/test/tools/llvm-pdbdump/type-server-no-dbi.test new file mode 100644 index 00000000000..8b1f0b61b76 --- /dev/null +++ b/llvm/test/tools/llvm-pdbdump/type-server-no-dbi.test @@ -0,0 +1,46 @@ + +RUN: llvm-pdbutil dump -all %p/Inputs/TypeServerTest.pdb | FileCheck %s --check-prefix=NO-DBI +RUN: llvm-pdbutil pdb2yaml -all %p/Inputs/TypeServerTest.pdb > %t +RUN: FileCheck --input-file=%t %s --check-prefix=NO-DBI-YAML + +NO-DBI-NOT: Native PDB Error: The specified stream could not be loaded. + +NO-DBI: Module Stats +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + +NO-DBI: S_UDT Record Stats +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: Globals stream not present + +NO-DBI: Modules +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + +NO-DBI: Files +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + +NO-DBI: Lines +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + +NO-DBI: Inlinee Lines +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + +NO-DBI: Cross Module Imports +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + +NO-DBI: Cross Module Exports +NO-DBI-NEXT: ============================================================ +NO-DBI-NEXT: DBI stream not present + + +NO-DBI-YAML-NOT: Native PDB Error: The specified stream could not be loaded. + +NO-DBI-YAML: TpiStream: +NO-DBI-YAML-NEXT: Version: VC80 +NO-DBI-YAML-NEXT: Records: +NO-DBI-YAML-NEXT: - Kind: LF_ARGLIST |