-add_llvm_unittest(JIT ${JITTestsSources})
-
-add_llvm_unittest(Transforms
- Transforms/Utils/Cloning.cpp
- )
-
-set(VMCoreSources
- VMCore/ConstantsTest.cpp
- VMCore/DerivedTypesTest.cpp
- VMCore/InstructionsTest.cpp
- VMCore/MetadataTest.cpp
- VMCore/PassManagerTest.cpp
- VMCore/ValueMapTest.cpp
- VMCore/VerifierTest.cpp
- )
-
-# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
-# See issue#331418 in Visual Studio.
-if(MSVC AND MSVC_VERSION LESS 1600)
- list(REMOVE_ITEM VMCoreSources VMCore/ValueMapTest.cpp)
-endif()
-
-add_llvm_unittest(VMCore ${VMCoreSources})
-
-set(LLVM_LINK_COMPONENTS
- System
- Support
- Core
- )
-
-add_llvm_unittest(Support
- Support/AllocatorTest.cpp
- Support/Casting.cpp
- Support/CommandLineTest.cpp
- Support/ConstantRangeTest.cpp
- Support/EndianTest.cpp
- Support/LeakDetectorTest.cpp
- Support/MathExtrasTest.cpp
- Support/raw_ostream_test.cpp
- Support/RegexTest.cpp
- Support/SwapByteOrderTest.cpp
- Support/TypeBuilderTest.cpp
- Support/ValueHandleTest.cpp
- )
-
-set(LLVM_LINK_COMPONENTS
- System
- )