Files
swift-mirror/lib/SILOptimizer/FunctionSignatureTransforms/CMakeLists.txt
Michael Gottesman 9e70b855e4 [cmake] Use a helper macro to simplify adding sources to the SILOptimizer library.
All this does is automate the creation of the ${DIRNAME}_SOURCES variables that we already create and allows for the author to avoid having to prefix with the directory name, i.e.:

set(FOOBAR_SOURCES
  FooBar/Source.cpp
  PARENT_SCOPE)

=>

silopt_register_sources(
  Source.cpp)

Much easier and cleaner to read. I put the code that implements this in the
CMakeLists.txt file just for the SILOptimizer.
2018-06-27 17:48:59 -07:00

7 lines
149 B
CMake

silopt_register_sources(
FunctionSignatureOpts.cpp
DeadArgumentTransform.cpp
ArgumentExplosionTransform.cpp
OwnedToGuaranteedTransform.cpp
)