[LLVMdev] creating new Metadata

陳韋任 chenwj at iis.sinica.edu.tw
Wed Dec 21 23:27:35 PST 2011

> I am are able to create new MDNodes, filled with some constants, and attach
> them
> to llvm instructions. However, the metadata map is not getting updated as
> expected.
> For example, instead of the expected new entry
> !n = metadata !{some values}
> we are getting
> !n = metadata !{null}
> Do you know what might be wrong? Do we need to enter the MDNodes into the
> map explicitly?

  Maybe you can give us code snipt which you use to attach MDNode?


Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

More information about the llvm-dev mailing list