[LLVMdev] More metadata questions

guyadini
Sun, 07 Nov 2010 14:43:53 -0000

Hi,

I hope I'm not too annoying with my newbie questions.
I've read the new (great!) wiki about the DI* classes, and I still can't
figure out how to insert metadata into the LLVM IR.

Let's say that I want to have two passes, one that creates some metadata
string and inserts it into the IR, and the second one that reads it and acts
according to what it finds (or doesn't find).

Are the DI* classes the right way to go?
Or should I use MDString, etc?

Either way, I've found lots of ways to define them, but not the right way to
actually get them to be where I want them in the IR.

Thanks a lot,
Guy
--
View this message in context:
http://old.nabble.com/More-metadata-questions-tp30152346p30152346.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.