This is a new pass manager, and I tried serverl ways, but fails again and over again. I think there should be a default pass pipeline registration function for clang.
Or I should modify the clang diver? I don’t think this is a complicate problem, because OLLVM can use clang -mllvm -bcf …
Yes, I use Pass Plugin Infrastructure,I don’t know whether my implements are right.
But I still can’t invoke Pass through clang’s command line argument. Because my Pass is not dynamic linked, I wish clang static link my pass so that I don’t have to invoke clang like