Skip to content

Commit 5a21d2b

Browse files
committed
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
1 parent 0082f1e commit 5a21d2b

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

debuginfo-tests/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# various types of debug info, and then run those programs under a debugger
33
# such as GDB or LLDB to verify the results.
44

5-
add_llvm_executable(prettyprinters
6-
llvm-prettyprinters/gdb/prettyprinters.cpp
5+
add_llvm_executable(check-gdb-llvm-support
6+
llvm-prettyprinters/gdb/llvm-support.cpp
77
)
8-
target_link_libraries(prettyprinters PRIVATE LLVMSupport)
8+
target_link_libraries(check-gdb-llvm-support PRIVATE LLVMSupport)
99

1010
set(DEBUGINFO_TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
1111
set(DEBUGINFO_TESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
@@ -15,8 +15,8 @@ set(DEBUGINFO_TEST_DEPS
1515
FileCheck
1616
count
1717
llvm-objdump
18+
check-gdb-llvm-support
1819
not
19-
prettyprinters
2020
)
2121

2222
# The Windows builder scripts pass -fuse-ld=lld.

debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.cpp renamed to debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,8 @@ auto SimpleIlist = []() {
4747
return Result;
4848
}();
4949

50+
// Check expected instances to avoid compile errors.
51+
auto CheckExpectedValue = static_cast<bool>(ExpectedValue);
52+
auto CheckExpectedError = static_cast<bool>(ExpectedError);
53+
5054
int main() { return 0; }

debuginfo-tests/llvm-prettyprinters/gdb/prettyprinters.gdb renamed to debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: gdb -q -batch -n -iex 'source %llvm_src_root/utils/gdb-scripts/prettyprinters.py' -x %s %llvm_tools_dir/prettyprinters | FileCheck %s
1+
# 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
22

33
break main
44
run

0 commit comments

Comments
 (0)