summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/CMakeLists.txt6
-rw-r--r--llvm/unittests/Target/AArch64/CMakeLists.txt2
-rw-r--r--llvm/unittests/Target/WebAssembly/CMakeLists.txt2
-rw-r--r--llvm/unittests/tools/llvm-exegesis/AArch64/CMakeLists.txt2
-rw-r--r--llvm/unittests/tools/llvm-exegesis/ARM/CMakeLists.txt2
-rw-r--r--llvm/unittests/tools/llvm-exegesis/PowerPC/CMakeLists.txt2
-rw-r--r--llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt2
7 files changed, 6 insertions, 12 deletions
diff --git a/llvm/unittests/CMakeLists.txt b/llvm/unittests/CMakeLists.txt
index 816c61eceaf..68fa8533baf 100644
--- a/llvm/unittests/CMakeLists.txt
+++ b/llvm/unittests/CMakeLists.txt
@@ -8,12 +8,6 @@ function(add_llvm_unittest_with_input_files test_dirname)
add_unittest_with_input_files(UnitTests ${test_dirname} ${ARGN})
endfunction()
-# The target unittests may test APIs that aren't exported in libLLVM.so, so
-# we need to always link against the static libraries.
-function(add_llvm_target_unittest test_dir_name)
- add_llvm_unittest(${test_dir_name} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARGN})
-endfunction()
-
add_subdirectory(ADT)
add_subdirectory(Analysis)
add_subdirectory(AsmParser)
diff --git a/llvm/unittests/Target/AArch64/CMakeLists.txt b/llvm/unittests/Target/AArch64/CMakeLists.txt
index d23e68096b3..76f6c8226a8 100644
--- a/llvm/unittests/Target/AArch64/CMakeLists.txt
+++ b/llvm/unittests/Target/AArch64/CMakeLists.txt
@@ -17,6 +17,6 @@ set(LLVM_LINK_COMPONENTS
Target
)
-add_llvm_target_unittest(AArch64Tests
+add_llvm_unittest(AArch64Tests
InstSizes.cpp
)
diff --git a/llvm/unittests/Target/WebAssembly/CMakeLists.txt b/llvm/unittests/Target/WebAssembly/CMakeLists.txt
index 2e467e46c93..5ec82240b03 100644
--- a/llvm/unittests/Target/WebAssembly/CMakeLists.txt
+++ b/llvm/unittests/Target/WebAssembly/CMakeLists.txt
@@ -13,6 +13,6 @@ set(LLVM_LINK_COMPONENTS
WebAssemblyInfo
)
-add_llvm_target_unittest(WebAssemblyTests
+add_llvm_unittest(WebAssemblyTests
WebAssemblyExceptionInfoTest.cpp
)
diff --git a/llvm/unittests/tools/llvm-exegesis/AArch64/CMakeLists.txt b/llvm/unittests/tools/llvm-exegesis/AArch64/CMakeLists.txt
index 907de111945..392efce26c0 100644
--- a/llvm/unittests/tools/llvm-exegesis/AArch64/CMakeLists.txt
+++ b/llvm/unittests/tools/llvm-exegesis/AArch64/CMakeLists.txt
@@ -13,7 +13,7 @@ set(LLVM_LINK_COMPONENTS
AArch64
)
-add_llvm_target_unittest(LLVMExegesisAArch64Tests
+add_llvm_unittest(LLVMExegesisAArch64Tests
TargetTest.cpp
)
target_link_libraries(LLVMExegesisAArch64Tests PRIVATE
diff --git a/llvm/unittests/tools/llvm-exegesis/ARM/CMakeLists.txt b/llvm/unittests/tools/llvm-exegesis/ARM/CMakeLists.txt
index 27ecff5f4ae..b000974938f 100644
--- a/llvm/unittests/tools/llvm-exegesis/ARM/CMakeLists.txt
+++ b/llvm/unittests/tools/llvm-exegesis/ARM/CMakeLists.txt
@@ -13,7 +13,7 @@ set(LLVM_LINK_COMPONENTS
ARM
)
-add_llvm_target_unittest(LLVMExegesisARMTests
+add_llvm_unittest(LLVMExegesisARMTests
AssemblerTest.cpp
)
target_link_libraries(LLVMExegesisARMTests PRIVATE LLVMExegesis)
diff --git a/llvm/unittests/tools/llvm-exegesis/PowerPC/CMakeLists.txt b/llvm/unittests/tools/llvm-exegesis/PowerPC/CMakeLists.txt
index 6324ae652de..e8a53e3692a 100644
--- a/llvm/unittests/tools/llvm-exegesis/PowerPC/CMakeLists.txt
+++ b/llvm/unittests/tools/llvm-exegesis/PowerPC/CMakeLists.txt
@@ -13,7 +13,7 @@ set(LLVM_LINK_COMPONENTS
PowerPC
)
-add_llvm_target_unittest(LLVMExegesisPowerPCTests
+add_llvm_unittest(LLVMExegesisPowerPCTests
AnalysisTest.cpp
TargetTest.cpp
)
diff --git a/llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt b/llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt
index a63d7f3ba56..88c38d0d7e8 100644
--- a/llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt
+++ b/llvm/unittests/tools/llvm-exegesis/X86/CMakeLists.txt
@@ -13,7 +13,7 @@ set(LLVM_LINK_COMPONENTS
X86
)
-add_llvm_target_unittest(LLVMExegesisX86Tests
+add_llvm_unittest(LLVMExegesisX86Tests
AssemblerTest.cpp
BenchmarkResultTest.cpp
RegisterAliasingTest.cpp
OpenPOWER on IntegriCloud