OSDN Git Service

Rename prettyprinters test to llvm-support.
authorChristian Sigg <csigg@google.com>
Fri, 31 Jan 2020 11:19:36 +0000 (12:19 +0100)
committerChristian Sigg <csigg@google.com>
Fri, 7 Feb 2020 13:05:26 +0000 (14:05 +0100)
Summary: Make room for mlir-support pretty printers that I would like to add next.

Reviewers: dblaikie

Reviewed By: dblaikie

Subscribers: merge_guards_bot, mgorny, rriddle, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73726

debuginfo-tests/CMakeLists.txt
debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp [moved from debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.cpp with 90% similarity]
debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb [moved from debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.gdb with 97% similarity]

index c122d9b..9f488e9 100644 (file)
@@ -2,10 +2,10 @@
 # various types of debug info, and then run those programs under a debugger
 # such as GDB or LLDB to verify the results.
 
-add_llvm_executable(prettyprinters
-        llvm-prettyprinters/gdb/prettyprinters.cpp
+add_llvm_executable(check-gdb-llvm-support
+        llvm-prettyprinters/gdb/llvm-support.cpp
 )
-target_link_libraries(prettyprinters PRIVATE LLVMSupport)
+target_link_libraries(check-gdb-llvm-support PRIVATE LLVMSupport)
 
 set(DEBUGINFO_TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
 set(DEBUGINFO_TESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
@@ -15,8 +15,8 @@ set(DEBUGINFO_TEST_DEPS
   FileCheck
   count
   llvm-objdump
+  check-gdb-llvm-support
   not
-  prettyprinters
   )
 
 # The Windows builder scripts pass -fuse-ld=lld.
@@ -47,4 +47,8 @@ auto SimpleIlist = []() {
   return Result;
 }();
 
+// Check expected instances to avoid compile errors.
+auto CheckExpectedValue = static_cast<bool>(ExpectedValue);
+auto CheckExpectedError = static_cast<bool>(ExpectedError);
+
 int main() { return 0; }
@@ -1,4 +1,4 @@
-# RUN: gdb -q -batch -n -iex 'source %llvm_src_root/utils/gdb-scripts/prettyprinters.py' -x %s %llvm_tools_dir/prettyprinters | FileCheck %s
+# RUN: gdb -q -batch -n -iex 'source %llvm_src_root/utils/gdb-scripts/prettyprinters.py' -x %s %llvm_tools_dir/check-gdb-llvm-support | FileCheck %s
 
 break main
 run