Skip to content

Commit 8b0d38b

Browse files
authored
[llvm] Remove the Legacy PM Hello example (#95708)
The Legacy PM was deprecated for the optimization pipeline in LLVM 14 [1] (the support was removed altogether in the following release). This patch removes the original Hello example that was introduced to illustrate the Legacy PM. The Hello example no longer works and hence is deleted. The corresponding documentation is also removed. Note, Hello example for the new PM is located in * llvm/lib/Transforms/Utils/HelloWorld.cpp and documented in * WritingAnLLVMNewPMPass.rst. [1] https://releases.llvm.org/14.0.0/docs/ReleaseNotes.html#changes-to-the-llvm-ir
1 parent a6eddf9 commit 8b0d38b

File tree

8 files changed

+30
-491
lines changed

8 files changed

+30
-491
lines changed

clang-tools-extra/test/CMakeLists.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,8 @@ if (NOT WIN32 OR NOT LLVM_LINK_LLVM_DYLIB)
7474
PLUGIN_TOOL clang-tidy)
7575
endif()
7676

77-
if(CLANG_BUILT_STANDALONE)
78-
# LLVMHello library is needed below
79-
if (EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Transforms/Hello
80-
AND NOT TARGET LLVMHello)
81-
add_subdirectory(${LLVM_MAIN_SRC_DIR}/lib/Transforms/Hello
82-
lib/Transforms/Hello)
83-
endif()
84-
endif()
85-
8677
if(TARGET CTTestTidyModule)
87-
list(APPEND CLANG_TOOLS_TEST_DEPS CTTestTidyModule LLVMHello)
78+
list(APPEND CLANG_TOOLS_TEST_DEPS CTTestTidyModule)
8879
target_include_directories(CTTestTidyModule PUBLIC BEFORE "${CLANG_TOOLS_SOURCE_DIR}")
8980
if(CLANG_PLUGIN_SUPPORT AND (WIN32 OR CYGWIN))
9081
set(LLVM_LINK_COMPONENTS

clang-tools-extra/test/clang-tidy/CTTestTidyModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: plugins
2-
// RUN: clang-tidy -checks='-*,mytest*' --list-checks -load %llvmshlibdir/CTTestTidyModule%pluginext -load %llvmshlibdir/LLVMHello%pluginext | FileCheck --check-prefix=CHECK-LIST %s
2+
// RUN: clang-tidy -checks='-*,mytest*' --list-checks -load %llvmshlibdir/CTTestTidyModule%pluginext | FileCheck --check-prefix=CHECK-LIST %s
33
// CHECK-LIST: Enabled checks:
44
// CHECK-LIST-NEXT: mytest1
55
// CHECK-LIST-NEXT: mytest2

0 commit comments

Comments
 (0)