[debuginfo-tests] 5a21d2b - Rename prettyprinters test to llvm-support.

Christian Sigg via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 05:05:37 PST 2020


Author: Christian Sigg
Date: 2020-02-07T14:05:26+01:00
New Revision: 5a21d2bbb982e431fe0512af2438a1a5e1e13c29

URL: https://github.com/llvm/llvm-project/commit/5a21d2bbb982e431fe0512af2438a1a5e1e13c29
DIFF: https://github.com/llvm/llvm-project/commit/5a21d2bbb982e431fe0512af2438a1a5e1e13c29.diff

LOG: Rename prettyprinters test to llvm-support.

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

Added: 
    debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
    debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb

Modified: 
    debuginfo-tests/CMakeLists.txt

Removed: 
    debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.cpp
    debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.gdb


################################################################################
diff  --git a/debuginfo-tests/CMakeLists.txt b/debuginfo-tests/CMakeLists.txt
index c122d9b27a8a..9f488e92faf4 100644
--- a/debuginfo-tests/CMakeLists.txt
+++ b/debuginfo-tests/CMakeLists.txt
@@ -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.

diff  --git a/debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.cpp b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
similarity index 90%
rename from debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.cpp
rename to debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
index ed556ec3085c..7e0f193a3ff2 100644
--- a/debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.cpp
+++ b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp
@@ -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; }

diff  --git a/debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.gdb b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb
similarity index 97%
rename from debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.gdb
rename to debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb
index 12baa6ee0895..c02c03c1b1c7 100644
--- a/debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.gdb
+++ b/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb
@@ -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


        


More information about the llvm-commits mailing list