llvm passes under xcode

Hi, I am interested in developing some passes using the Xcode IDE.
I create a pass directory with a simple pass in it, add it to the lib/Trasform/ directory, changed and added some CMakeList.txt files and compiled using cmake (cmake -G Xcode).
The compilation gives me no errors but then I’ve found that I have not a Debug+Asserts folder and opt has no option related to my pass…what can I do to make it work? Am I missing something or there is no way to develop a pass using Xcode?
Thank you in advance,

Niko

I think there’s a LinkAllPasses.h (or similarly named) header file that you need to modify that will force your pass to be linked into the opt executable. – John T.