1set(LLVM_LINK_COMPONENTS 2 asmparser 3 bitreader 4 bitwriter 5 instrumentation 6 ipo 7 linker 8 vectorize 9 ) 10 11add_clang_library(clangCodeGen 12 BackendUtil.cpp 13 CGAtomic.cpp 14 CGBlocks.cpp 15 CGBuiltin.cpp 16 CGCall.cpp 17 CGClass.cpp 18 CGCUDANV.cpp 19 CGCUDARuntime.cpp 20 CGCXX.cpp 21 CGCXXABI.cpp 22 CGCleanup.cpp 23 CGDebugInfo.cpp 24 CGDecl.cpp 25 CGDeclCXX.cpp 26 CGException.cpp 27 CGExpr.cpp 28 CGExprAgg.cpp 29 CGExprComplex.cpp 30 CGExprConstant.cpp 31 CGExprCXX.cpp 32 CGExprScalar.cpp 33 CGObjC.cpp 34 CGObjCGNU.cpp 35 CGObjCMac.cpp 36 CGObjCRuntime.cpp 37 CGOpenCLRuntime.cpp 38 CGRecordLayoutBuilder.cpp 39 CGRTTI.cpp 40 CGStmt.cpp 41 CGVTables.cpp 42 CGVTT.cpp 43 CodeGenAction.cpp 44 CodeGenFunction.cpp 45 CodeGenModule.cpp 46 CodeGenTBAA.cpp 47 CodeGenTypes.cpp 48 ItaniumCXXABI.cpp 49 MicrosoftCXXABI.cpp 50 ModuleBuilder.cpp 51 TargetInfo.cpp 52 ) 53 54add_dependencies(clangCodeGen 55 ClangARMNeon 56 ClangAttrClasses 57 ClangAttrList 58 ClangCommentNodes 59 ClangDeclNodes 60 ClangDiagnosticCommon 61 ClangDiagnosticFrontend 62 ClangStmtNodes 63 ) 64 65target_link_libraries(clangCodeGen 66 clangBasic 67 clangAST 68 clangFrontend 69 ) 70