mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We use C++17 for the Swift compiler and IRGen uses the sized deallocation for releasing memory it creates with over-allocation. That triggers ASAN warnings due to the mismatched `operator new`/`operator delete`.
90 lines
1.6 KiB
CMake
90 lines
1.6 KiB
CMake
|
|
add_swift_host_library(swiftIRGen STATIC
|
|
AllocStackHoisting.cpp
|
|
APIGen.cpp
|
|
ClassLayout.cpp
|
|
DebugTypeInfo.cpp
|
|
EnumPayload.cpp
|
|
ExtraInhabitants.cpp
|
|
Fulfillment.cpp
|
|
GenArchetype.cpp
|
|
GenArray.cpp
|
|
GenBuiltin.cpp
|
|
GenCall.cpp
|
|
GenCast.cpp
|
|
GenClangDecl.cpp
|
|
GenClangType.cpp
|
|
GenClass.cpp
|
|
GenConstant.cpp
|
|
GenControl.cpp
|
|
GenCoro.cpp
|
|
GenCoverage.cpp
|
|
GenConcurrency.cpp
|
|
GenDistributed.cpp
|
|
GenDecl.cpp
|
|
GenDiffFunc.cpp
|
|
GenDiffWitness.cpp
|
|
GenEnum.cpp
|
|
GenExistential.cpp
|
|
GenFunc.cpp
|
|
GenHasSymbol.cpp
|
|
GenHeap.cpp
|
|
GenInit.cpp
|
|
GenIntegerLiteral.cpp
|
|
GenKeyPath.cpp
|
|
GenMeta.cpp
|
|
GenObjC.cpp
|
|
GenOpaque.cpp
|
|
GenPack.cpp
|
|
GenPointerAuth.cpp
|
|
GenPoly.cpp
|
|
GenProto.cpp
|
|
GenReflection.cpp
|
|
GenStruct.cpp
|
|
GenThunk.cpp
|
|
GenTuple.cpp
|
|
GenType.cpp
|
|
GenValueWitness.cpp
|
|
IRABIDetailsProvider.cpp
|
|
IRGen.cpp
|
|
IRGenDebugInfo.cpp
|
|
IRGenFunction.cpp
|
|
IRGenMangler.cpp
|
|
IRGenModule.cpp
|
|
IRGenSILPasses.cpp
|
|
IRGenRequests.cpp
|
|
IRGenSIL.cpp
|
|
IRSymbolVisitor.cpp
|
|
Linking.cpp
|
|
LoadableByAddress.cpp
|
|
LocalTypeData.cpp
|
|
MetadataLayout.cpp
|
|
MetadataRequest.cpp
|
|
Outlining.cpp
|
|
PackMetadataMarkerInserter.cpp
|
|
StructLayout.cpp
|
|
SwiftTargetInfo.cpp
|
|
TBDGen.cpp
|
|
TBDGenRequests.cpp
|
|
TypeLayout.cpp
|
|
TypeLayoutDumper.cpp
|
|
TypeLayoutVerifier.cpp
|
|
|
|
LLVM_LINK_COMPONENTS
|
|
target
|
|
targetparser
|
|
transformutils
|
|
irprinter
|
|
)
|
|
target_link_libraries(swiftIRGen INTERFACE
|
|
clangCodeGen
|
|
clangAST)
|
|
target_link_libraries(swiftIRGen PRIVATE
|
|
swiftAST
|
|
swiftLLVMPasses
|
|
swiftSIL
|
|
swiftSILGen
|
|
swiftSILOptimizer)
|
|
|
|
set_swift_llvm_is_available(swiftIRGen)
|