Can anyone point me to a concrete example of attaching metadata to llvm-ir using the c++ api?
I\'ve read this page http://llvm.org/docs/SourceLevelDebugging.html.
<
There are two things you can do.
!dbg nodes from the link you referenced). For that, there's the Instruction::setMetadata methodModule::getOrInsertNamedMetadata.