Revert "[llvm-pdbdump] Add some tests for llvm-pdbdump."
authorZachary Turner <zturner@google.com>
Fri, 20 Feb 2015 23:21:21 +0000 (23:21 +0000)
committerZachary Turner <zturner@google.com>
Fri, 20 Feb 2015 23:21:21 +0000 (23:21 +0000)
It is not correctly detecting the situations where the test is
unsupported.  Reverting until we can figure it out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230085 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/PDB/Inputs/empty.cpp [deleted file]
test/DebugInfo/PDB/Inputs/empty.pdb [deleted file]
test/DebugInfo/PDB/Inputs/symbolformat-fpo.cpp [deleted file]
test/DebugInfo/PDB/Inputs/symbolformat.cpp [deleted file]
test/DebugInfo/PDB/Inputs/symbolformat.pdb [deleted file]
test/DebugInfo/PDB/lit.local.cfg [deleted file]
test/DebugInfo/PDB/pdbdump-flags.test [deleted file]
test/DebugInfo/PDB/pdbdump-symbol-format.test [deleted file]
test/lit.site.cfg.in

diff --git a/test/DebugInfo/PDB/Inputs/empty.cpp b/test/DebugInfo/PDB/Inputs/empty.cpp
deleted file mode 100644 (file)
index f27ea18..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build with "cl.exe /Zi empty.cpp /link /debug /nodefaultlib /entry:main"\r
-\r
-void *__purecall = 0;\r
-\r
-int main() {\r
-  return 42;\r
-}\r
diff --git a/test/DebugInfo/PDB/Inputs/empty.pdb b/test/DebugInfo/PDB/Inputs/empty.pdb
deleted file mode 100644 (file)
index ae65c3a..0000000
Binary files a/test/DebugInfo/PDB/Inputs/empty.pdb and /dev/null differ
diff --git a/test/DebugInfo/PDB/Inputs/symbolformat-fpo.cpp b/test/DebugInfo/PDB/Inputs/symbolformat-fpo.cpp
deleted file mode 100644 (file)
index 3a72008..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// Compile with "cl /GR- /Zi /c /Ox /Oy symbolformat-fpo.cpp"\r
-// Refer to symbolformat.cpp for linking instructions.\r
-\r
-unsigned fpo_func(unsigned n) {\r
-  return n * 2;\r
-}\r
diff --git a/test/DebugInfo/PDB/Inputs/symbolformat.cpp b/test/DebugInfo/PDB/Inputs/symbolformat.cpp
deleted file mode 100644 (file)
index 86135a4..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Compile with "cl /c /Zi /GR- symbolformat.cpp"\r
-// Compile symbolformat-fpo.cpp (see file for instructions)\r
-// Link with "link symbolformat.obj symbolformat-fpo.obj /debug /nodefaultlib\r
-//    /entry:main /out:symbolformat.exe"\r
-\r
-int __cdecl _purecall(void) { return 0; }\r
-\r
-struct A {\r
-  virtual void PureFunc() = 0 {}\r
-  virtual void VirtualFunc() {}\r
-  void RegularFunc() {}\r
-};\r
-\r
-struct B : public A {\r
-  void PureFunc() override {}\r
-};\r
-\r
-int main(int argc, char **argv) {\r
-  B b;\r
-  auto PureAddr = &B::PureFunc;\r
-  auto VirtualAddr = &A::PureFunc;\r
-  auto RegularAddr = &A::RegularFunc;\r
-  return 0;\r
-}\r
diff --git a/test/DebugInfo/PDB/Inputs/symbolformat.pdb b/test/DebugInfo/PDB/Inputs/symbolformat.pdb
deleted file mode 100644 (file)
index 3bbc7bb..0000000
Binary files a/test/DebugInfo/PDB/Inputs/symbolformat.pdb and /dev/null differ
diff --git a/test/DebugInfo/PDB/lit.local.cfg b/test/DebugInfo/PDB/lit.local.cfg
deleted file mode 100644 (file)
index 28a895f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-config.unsupported = not config.have_dia_sdk
diff --git a/test/DebugInfo/PDB/pdbdump-flags.test b/test/DebugInfo/PDB/pdbdump-flags.test
deleted file mode 100644 (file)
index fd14e8a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: llvm-pdbdump %p/Inputs/empty.pdb | FileCheck %s -check-prefix SUMMARY_CHECK
-; RUN: llvm-pdbdump -functions %p/Inputs/empty.pdb | FileCheck %s -check-prefix MAIN_CHECK
-
-; Check PDB file summary information
-; SUMMARY_CHECK: empty.pdb
-; SUMMARY_CHECK: Guid: {0B355641-86A0-A249-896F-9988FAE52FF0}
-; SUMMARY_CHECK: Attributes: HasPrivateSymbols
-
-; Check that running with only -compilands doesn't include unwanted symbol types
-; MAIN_CHECK: (EBP) int32_t __cdecl main()
-; MAIN_CHECK-NOT: vtbl:
-; MAIN_CHECK-NOT: enum:
-; MAIN_CHECK-NOT: class:
-; MAIN_CHECK-NOT: data:
diff --git a/test/DebugInfo/PDB/pdbdump-symbol-format.test b/test/DebugInfo/PDB/pdbdump-symbol-format.test
deleted file mode 100644 (file)
index 64753df..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: llvm-pdbdump -all -hidden -group-by=compiland %p/Inputs/symbolformat.pdb | FileCheck --check-prefix=FORMAT %s
-
-; The format here is func [0x<rva_start>+<prologue_length> - 0x<rva_end>-<epilogue_length>]
-; FORMAT: test\DebugInfo\PDB\Inputs\symbolformat-fpo.obj
-; FORMAT-DAG: func [0x001130+0 - 0x001137-1] (VFrame) uint32_t __cdecl fpo_func(uint32_t)
-; FORMAT: d:\src\llvm\test\DebugInfo\PDB\Inputs\symbolformat.obj
-; FORMAT-DAG: func [0x001060+3 - 0x001067-2] (EBP) int32_t __cdecl _purecall()
-; FORMAT-DAG: func [0x001070+6 - 0x001099-4] (EBP) int32_t __cdecl main(int32_t, char**)
-; FORMAT-DAG: func [0x0010b0+7 - 0x0010c7-4] (EBP) void __thiscall A::A()
-; FORMAT-DAG: func [0x0010d0+7 - 0x0010ef-4] (EBP) void __thiscall B::B()
-; FORMAT-DAG: thunk [0x000010f6 - 0x000010fa] (Pcode) B::`vcall'{0}'
-; FORMAT-DAG: func [0x001100+7 - 0x00110b-4] (EBP) virtual void __thiscall B::PureFunc()
-; FORMAT-DAG: func [0x001110+7 - 0x00111b-4] (EBP) void __thiscall A::RegularFunc()
-; FORMAT-DAG: func [0x001120+7 - 0x00112b-4] (EBP) virtual void __thiscall A::VirtualFunc()
index f964a28551f55e6c47b2e0cd9f6a79434422fe58..9336c76369a7bb48f8279d71f9664838213b86fc 100644 (file)
@@ -31,7 +31,6 @@ config.host_ldflags = "@HOST_LDFLAGS@"
 config.llvm_use_intel_jitevents = "@LLVM_USE_INTEL_JITEVENTS@"
 config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
 config.have_zlib = "@HAVE_LIBZ@"
-config.have_dia_sdk = "@HAVE_DIA_SDK@"
 config.enable_ffi = "@LLVM_ENABLE_FFI@"
 
 # Support substitution of the tools_dir with user parameters. This is