mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
83a953d909
Many times unit tests for different libraries would like to use the same helper functions for checking common types of errors. This patch adds a common library with helpers for testing things in Support, and introduces helpers in here for integrating the llvm::Error and llvm::Expected<T> classes with gtest and gmock. Normally, we would just be able to write: EXPECT_THAT(someFunction(), succeeded()); but due to some quirks in llvm::Error's move semantics, gmock doesn't make this easy, so two macros EXPECT_THAT_ERROR() and EXPECT_THAT_EXPECTED() are introduced to gloss over the difficulties. Consider this an exception, and possibly only temporary as we look for ways to improve this. Differential Revision: https://reviews.llvm.org/D33059 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305395 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
731 B
CMake
28 lines
731 B
CMake
# `Demangle', `Support' and `TableGen' libraries are added on the top-level
|
|
# CMakeLists.txt
|
|
|
|
add_subdirectory(IR)
|
|
add_subdirectory(IRReader)
|
|
add_subdirectory(CodeGen)
|
|
add_subdirectory(BinaryFormat)
|
|
add_subdirectory(Bitcode)
|
|
add_subdirectory(Transforms)
|
|
add_subdirectory(Linker)
|
|
add_subdirectory(Analysis)
|
|
add_subdirectory(LTO)
|
|
add_subdirectory(MC)
|
|
add_subdirectory(Object)
|
|
add_subdirectory(ObjectYAML)
|
|
add_subdirectory(Option)
|
|
add_subdirectory(DebugInfo)
|
|
add_subdirectory(ExecutionEngine)
|
|
add_subdirectory(Target)
|
|
add_subdirectory(AsmParser)
|
|
add_subdirectory(LineEditor)
|
|
add_subdirectory(ProfileData)
|
|
add_subdirectory(Fuzzer)
|
|
add_subdirectory(Passes)
|
|
add_subdirectory(ToolDrivers)
|
|
add_subdirectory(XRay)
|
|
add_subdirectory(Testing)
|