Intrinsic annotation doesn't work with C++ files

Hi all,

I need to use annotate inside the C++ code and want to know why doesn’t it work? How can I modify my sources to use annotate inside the C++ code too?

Thanks in advance.

Sincerely,
Hripsime.

Hello again,

I really need to know how to make llvm understand the annotate in C++ code or to write a new Intrinsic by myself. I tried to add a new Intrinsic corresponding to the ExtendingLLVM doc instructions, but it is too opaque and I faild.

Please, advise me if you can.

Sincerely,
Hripsime.

I’ve already resolved the problem using extern “C”.