Fix layering StringRef copy using BumpPtrAllocator.
[oota-llvm.git] / unittests / ADT / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
4
5 set(ADTSources
6   APFloatTest.cpp
7   APIntTest.cpp
8   ArrayRefTest.cpp
9   BitVectorTest.cpp
10   DAGDeltaAlgorithmTest.cpp
11   DeltaAlgorithmTest.cpp
12   DenseMapTest.cpp
13   DenseSetTest.cpp
14   FoldingSet.cpp
15   HashingTest.cpp
16   ilistTest.cpp
17   ImmutableMapTest.cpp
18   ImmutableSetTest.cpp
19   IntEqClassesTest.cpp
20   IntervalMapTest.cpp
21   IntrusiveRefCntPtrTest.cpp
22   MapVectorTest.cpp
23   OptionalTest.cpp
24   PackedVectorTest.cpp
25   PointerUnionTest.cpp
26   SCCIteratorTest.cpp
27   SmallPtrSetTest.cpp
28   SmallStringTest.cpp
29   SmallVectorTest.cpp
30   SparseBitVectorTest.cpp
31   SparseMultiSetTest.cpp
32   SparseSetTest.cpp
33   StringMapTest.cpp
34   StringRefTest.cpp
35   TinyPtrVectorTest.cpp
36   TripleTest.cpp
37   TwineTest.cpp
38   VariadicFunctionTest.cpp
39   polymorphic_ptr_test.cpp
40  )
41
42 # They cannot be compiled on MSVC9 due to its bug.
43 if(MSVC AND MSVC_VERSION LESS 1600)
44   set(LLVM_OPTIONAL_SOURCES
45     DenseMapTest.cpp
46     SmallVectorTest.cpp
47     )
48   list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES})
49 endif()
50
51 add_llvm_unittest(ADTTests
52   ${ADTSources}
53   )