[LLVMdev] Associating types directly with debug metadata?

Chris Lattner clattner at apple.com
Tue Oct 5 23:42:22 PDT 2010


On Oct 5, 2010, at 11:23 PM, Nick Lewycky wrote:

>> 
>> Here is another version of the patch.  This one includes also a small patch to llvm-gcc so that it generates the type metadata for structures and classes.  This one also generates and parses correctly the metadata for .ll files.  No .bc support yet.  The biggest problem with this version is that it breaks when the compiler/linker performs type reductions, and I don't understand why.
> 
> Please don't do this. My objection to the type value is on the grounds 
> that it is not a value. It does not match the conceptual meaning of a 
> value, that is, something you could put in a machine register on some 
> machine.
> 
> If you need to name an LLVM type in your MDNode, just create an undef 
> value of that type.

I agree completely.

-Chris



More information about the llvm-dev mailing list