summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-04-06 12:39:40 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2020-04-06 13:04:26 -0500
commit97aa593a8387586095b7eac12974ba2fdd08f4c3 (patch)
treeb85565e077858994a758524dc840c1bde5344ebf
parent07ed1fb5977804e6bda9f3c915a8c2d1c3f541a9 (diff)
downloadllvm-97aa593a8387586095b7eac12974ba2fdd08f4c3.tar.gz
[OpenMP] Fix layering problem with FrontendOpenMP
Summary: ASTMatchers is used in various places and it now exposes the LLVMFrontendOpenMP library to its users without them needing to depend on it explicitly. Reviewers: lebedev.ri Subscribers: mgorny, yaxunl, bollu, guansong, martong, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D77574
-rw-r--r--clang-tools-extra/clang-reorder-fields/CMakeLists.txt1
-rw-r--r--clang-tools-extra/clang-tidy/openmp/CMakeLists.txt1
-rw-r--r--clang/lib/ASTMatchers/CMakeLists.txt3
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt1
-rw-r--r--clang/lib/StaticAnalyzer/Core/CMakeLists.txt1
-rw-r--r--clang/lib/Tooling/CMakeLists.txt1
-rw-r--r--clang/lib/Tooling/Transformer/CMakeLists.txt1
-rw-r--r--clang/unittests/AST/CMakeLists.txt1
-rw-r--r--clang/unittests/ASTMatchers/CMakeLists.txt1
-rw-r--r--clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt1
-rw-r--r--clang/unittests/Analysis/CMakeLists.txt1
-rw-r--r--clang/unittests/Rename/CMakeLists.txt1
-rw-r--r--clang/unittests/Sema/CMakeLists.txt1
-rw-r--r--clang/unittests/StaticAnalyzer/CMakeLists.txt1
-rw-r--r--clang/unittests/Tooling/CMakeLists.txt1
15 files changed, 2 insertions, 15 deletions
diff --git a/clang-tools-extra/clang-reorder-fields/CMakeLists.txt b/clang-tools-extra/clang-reorder-fields/CMakeLists.txt
index c357d0a3cfbf..153271ce58e4 100644
--- a/clang-tools-extra/clang-reorder-fields/CMakeLists.txt
+++ b/clang-tools-extra/clang-reorder-fields/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
support
)
diff --git a/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt b/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt
index af95704fd445..ad1f591a6338 100644
--- a/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/openmp/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support)
add_clang_library(clangTidyOpenMPModule
diff --git a/clang/lib/ASTMatchers/CMakeLists.txt b/clang/lib/ASTMatchers/CMakeLists.txt
index cde871cd31ca..1b78d95e4fac 100644
--- a/clang/lib/ASTMatchers/CMakeLists.txt
+++ b/clang/lib/ASTMatchers/CMakeLists.txt
@@ -1,7 +1,6 @@
add_subdirectory(Dynamic)
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
@@ -15,3 +14,5 @@ add_clang_library(clangASTMatchers
clangBasic
clangLex
)
+
+target_link_libraries(clangASTMatchers PUBLIC LLVMFrontendOpenMP)
diff --git a/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt b/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
index bcf2dfdb8326..b7fb0d90c980 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
+++ b/clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/lib/StaticAnalyzer/Core/CMakeLists.txt b/clang/lib/StaticAnalyzer/Core/CMakeLists.txt
index 057cdd4bb18a..c7c9aa2ff1f4 100644
--- a/clang/lib/StaticAnalyzer/Core/CMakeLists.txt
+++ b/clang/lib/StaticAnalyzer/Core/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/lib/Tooling/CMakeLists.txt b/clang/lib/Tooling/CMakeLists.txt
index 71b6cc55e504..59c990daaa29 100644
--- a/clang/lib/Tooling/CMakeLists.txt
+++ b/clang/lib/Tooling/CMakeLists.txt
@@ -1,6 +1,5 @@
set(LLVM_LINK_COMPONENTS
Option
- FrontendOpenMP
Support
)
diff --git a/clang/lib/Tooling/Transformer/CMakeLists.txt b/clang/lib/Tooling/Transformer/CMakeLists.txt
index 281af1007a65..3d82bb98ff69 100644
--- a/clang/lib/Tooling/Transformer/CMakeLists.txt
+++ b/clang/lib/Tooling/Transformer/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/AST/CMakeLists.txt b/clang/unittests/AST/CMakeLists.txt
index 868635b6eea5..b738ce08d06d 100644
--- a/clang/unittests/AST/CMakeLists.txt
+++ b/clang/unittests/AST/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/ASTMatchers/CMakeLists.txt b/clang/unittests/ASTMatchers/CMakeLists.txt
index e128cfe695a6..aa5438c947f4 100644
--- a/clang/unittests/ASTMatchers/CMakeLists.txt
+++ b/clang/unittests/ASTMatchers/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt b/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt
index 85556b01cae1..c40964dfaf0b 100644
--- a/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt
+++ b/clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/Analysis/CMakeLists.txt b/clang/unittests/Analysis/CMakeLists.txt
index 66069c854a6a..03716e2e5e97 100644
--- a/clang/unittests/Analysis/CMakeLists.txt
+++ b/clang/unittests/Analysis/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/Rename/CMakeLists.txt b/clang/unittests/Rename/CMakeLists.txt
index 6ec0c521551c..a33d7d8ef720 100644
--- a/clang/unittests/Rename/CMakeLists.txt
+++ b/clang/unittests/Rename/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
support
)
diff --git a/clang/unittests/Sema/CMakeLists.txt b/clang/unittests/Sema/CMakeLists.txt
index 24105d7756f4..6832908e7fb1 100644
--- a/clang/unittests/Sema/CMakeLists.txt
+++ b/clang/unittests/Sema/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/StaticAnalyzer/CMakeLists.txt b/clang/unittests/StaticAnalyzer/CMakeLists.txt
index 5ce660f00040..ff92bdcb299a 100644
--- a/clang/unittests/StaticAnalyzer/CMakeLists.txt
+++ b/clang/unittests/StaticAnalyzer/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- FrontendOpenMP
Support
)
diff --git a/clang/unittests/Tooling/CMakeLists.txt b/clang/unittests/Tooling/CMakeLists.txt
index 67ab6bea2016..1f66ffd598d4 100644
--- a/clang/unittests/Tooling/CMakeLists.txt
+++ b/clang/unittests/Tooling/CMakeLists.txt
@@ -1,6 +1,5 @@
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
- FrontendOpenMP
Support
)