[LLVMdev] llvm::Type as llvm::Value in metadata

Clemens Hammacher hammacher at cs.uni-saarland.de
Tue Mar 27 01:21:51 PDT 2012


Hi Marcus,

> And to ask a concrete question: is there any way to store a reference to a llvm::Type within the LLVM metadata?

Not directly, but you can store a null value (Constant::getNullValue()) 
of the respective type.

Cheers,
Clemens

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6392 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120327/d4043471/attachment.bin>


More information about the llvm-dev mailing list