mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 18:27:59 +00:00
7b3602b234
this code ages ago and lost track of it. Seems worth doing though -- this thing can get called from places that would benefit from knowing that std::distance is O(1). Also add a very fledgeling unittest for Users and make sure various aspects of this seem to work reasonably. llvm-svn: 206453
41 lines
731 B
CMake
41 lines
731 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Analysis
|
|
AsmParser
|
|
Core
|
|
IPA
|
|
Support
|
|
)
|
|
|
|
set(IRSources
|
|
AttributesTest.cpp
|
|
ConstantRangeTest.cpp
|
|
ConstantsTest.cpp
|
|
DominatorTreeTest.cpp
|
|
IRBuilderTest.cpp
|
|
InstructionsTest.cpp
|
|
LeakDetectorTest.cpp
|
|
LegacyPassManagerTest.cpp
|
|
MDBuilderTest.cpp
|
|
MetadataTest.cpp
|
|
PassManagerTest.cpp
|
|
PatternMatch.cpp
|
|
TypeBuilderTest.cpp
|
|
TypesTest.cpp
|
|
UserTest.cpp
|
|
ValueHandleTest.cpp
|
|
ValueMapTest.cpp
|
|
ValueTest.cpp
|
|
VerifierTest.cpp
|
|
WaymarkTest.cpp
|
|
)
|
|
|
|
# HACK: Declare a couple of source files as optionally compiled to satisfy the
|
|
# missing-file-checker in LLVM's weird CMake build.
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
ValueMapTest.cpp
|
|
)
|
|
|
|
add_llvm_unittest(IRTests
|
|
${IRSources}
|
|
)
|