CMake error due to file addition

Hi llvm develop-team.

I am using clang/llvm6.0.0 version for univ lab project.I have some annoying

problem using CMake, so I ask for help. I added the following file to add some

features, and modified cmake, but I got a link error.

It would probably be easier for someone to answer your question if you provide the actual linker errors you’re getting (i.e. which symbols are unresolved). I really don’t know much about the library dependencies but I suspect there may be something you’re using in Dependency.cpp that belongs to a library that isn’t a dependency for LLVMTransformUtils. Perhaps your pass attempts to access something like TargetLowering, TargetInstrInfo, etc.