Skip to content

Commit 99ea48f

Browse files
committed
fix
1 parent a6a20c3 commit 99ea48f

File tree

12 files changed

+51
-50
lines changed

12 files changed

+51
-50
lines changed

llvm/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ set(LLVM_TEST_DEPENDS
138138
not
139139
obj2yaml
140140
opt
141+
opt-printplugin
141142
sancov
142143
sanstats
143144
split-file

llvm/test/Feature/load_staticextension.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; REQUIRES: x86-registered-target
2-
; RUN: opt-printplugin %s -load-pass-plugin="PrintPlugin" -passes="printpass" -disable-output 2>&1 | FileCheck %s
2+
; RUN: opt-printplugin %s -passes="printpass" -disable-output 2>&1 | FileCheck %s
33

44
; REQUIRES: plugins
55

llvm/tools/opt/CMakeLists.txt

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -29,37 +29,6 @@ set(LLVM_LINK_COMPONENTS
2929
Passes
3030
)
3131

32-
# We don't want to link this into libLLVM
33-
add_llvm_library(LLVMOptDriver
34-
STATIC
35-
NewPMDriver.cpp
36-
optdriver.cpp
37-
PARTIAL_SOURCES_INTENDED
38-
DEPENDS
39-
intrinsics_gen
40-
)
41-
42-
add_llvm_tool(opt
43-
PARTIAL_SOURCES_INTENDED
44-
opt.cpp
45-
DEPENDS
46-
intrinsics_gen
47-
SUPPORT_PLUGINS
48-
49-
)
50-
target_link_libraries(opt PRIVATE LLVMOptDriver)
51-
52-
export_executable_symbols_for_plugins(opt)
53-
54-
if (LLVM_ENABLE_PLUGINS)
55-
add_llvm_tool(opt-printplugin
56-
NewPMDriver.cpp
57-
opt.cpp
58-
PrintPlugin.cpp
59-
60-
DEPENDS
61-
intrinsics_gen
62-
SUPPORT_PLUGINS
63-
)
64-
target_link_options(opt-printplugin PUBLIC -Wl,--export-dynamic-symbol=llvmGetPassPluginInfoPrintPlugin)
65-
endif()
32+
add_subdirectory(lib)
33+
add_subdirectory(driver)
34+
add_subdirectory(test)

llvm/tools/opt/driver/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
add_llvm_tool(opt
2+
opt.cpp
3+
DEPENDS
4+
intrinsics_gen
5+
SUPPORT_PLUGINS
6+
)
7+
target_link_libraries(opt PRIVATE LLVMOptDriver)
8+
export_executable_symbols_for_plugins(opt)
File renamed without changes.

llvm/tools/opt/lib/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# We don't want to link this into libLLVM
2+
add_llvm_library(LLVMOptDriver
3+
STATIC
4+
NewPMDriver.cpp
5+
optdriver.cpp
6+
PARTIAL_SOURCES_INTENDED
7+
DEPENDS
8+
intrinsics_gen
9+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

llvm/tools/opt/test/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
add_llvm_tool(opt-printplugin
2+
opt-printplugin.cpp
3+
DEPENDS
4+
intrinsics_gen
5+
SUPPORT_PLUGINS
6+
)
7+
target_link_libraries(opt-printplugin PRIVATE LLVMOptDriver)
8+
export_executable_symbols_for_plugins(opt-printplugin)

0 commit comments

Comments
 (0)