[flang-commits] [flang] 718562a - [flang][tco] Remove unneeded dependencies

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Wed Jan 26 05:03:07 PST 2022


Author: Andrzej Warzynski
Date: 2022-01-26T13:02:58Z
New Revision: 718562a469f98a580975a5662f381cca9f1b3de5

URL: https://github.com/llvm/llvm-project/commit/718562a469f98a580975a5662f381cca9f1b3de5
DIFF: https://github.com/llvm/llvm-project/commit/718562a469f98a580975a5662f381cca9f1b3de5.diff

LOG: [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

Added: 
    

Modified: 
    flang/tools/tco/CMakeLists.txt
    flang/tools/tco/tco.cpp

Removed: 
    


################################################################################
diff  --git a/flang/tools/tco/CMakeLists.txt b/flang/tools/tco/CMakeLists.txt
index 49ba32f01dd91..f986ea1a64cf8 100644
--- a/flang/tools/tco/CMakeLists.txt
+++ b/flang/tools/tco/CMakeLists.txt
@@ -1,7 +1,3 @@
-set(LLVM_LINK_COMPONENTS
-  ${LLVM_TARGETS_TO_BUILD}
-)
-
 add_flang_tool(tco tco.cpp)
 llvm_update_compile_flags(tco)
 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)

diff  --git a/flang/tools/tco/tco.cpp b/flang/tools/tco/tco.cpp
index db01ea545580c..e363394f23289 100644
--- a/flang/tools/tco/tco.cpp
+++ b/flang/tools/tco/tco.cpp
@@ -136,8 +136,6 @@ int main(int argc, char **argv) {
   fir::support::registerMLIRPassesForFortranTools();
   fir::registerOptCodeGenPasses();
   fir::registerOptTransformPasses();
-  InitializeAllTargets();
-  mlir::registerAsmPrinterCLOptions();
   mlir::registerMLIRContextCLOptions();
   mlir::registerPassManagerCLOptions();
   mlir::PassPipelineCLParser passPipe("", "Compiler passes to run");


        


More information about the flang-commits mailing list