Skip to content

Commit 718562a

Browse files
committed
[flang][tco] Remove unneeded dependencies
`tco` does not generate machine code, so it does not require (machine) code-gen related dependencies. Differential Revision: https://reviews.llvm.org/D118112
1 parent 4e5fce5 commit 718562a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

flang/tools/tco/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
set(LLVM_LINK_COMPONENTS
2-
${LLVM_TARGETS_TO_BUILD}
3-
)
4-
51
add_flang_tool(tco tco.cpp)
62
llvm_update_compile_flags(tco)
73
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)

flang/tools/tco/tco.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ int main(int argc, char **argv) {
136136
fir::support::registerMLIRPassesForFortranTools();
137137
fir::registerOptCodeGenPasses();
138138
fir::registerOptTransformPasses();
139-
InitializeAllTargets();
140-
mlir::registerAsmPrinterCLOptions();
141139
mlir::registerMLIRContextCLOptions();
142140
mlir::registerPassManagerCLOptions();
143141
mlir::PassPipelineCLParser passPipe("", "Compiler passes to run");

0 commit comments

Comments
 (0)