search for: mymetadatat

Displaying 1 result from an estimated 1 matches for "mymetadatat".

Did you mean: mymetadata
2008 Sep 03
1
[LLVMdev] Creating global data with [ 0 x ... ] type
...er to the vtable in the metadata table. This means that the metadata table ends in a variable sized array. i.e.: %VtableEntryType = type { i32, i32 } %MetadataTable = type { i32, [0 x %VtableEntryType] } However, I can't figure out how to initialize it: ; most entries elided for simplicity @MyMetadataTable = global %MetadataTable { i32 0, [1 x %VtableEntryType] [ ; <--- problem here! %VtableEntryType { i32 1234, i32 1234 } ] } bitcast won't let me cast from [1 x %VtableEntryType] to [0 x %VtableEntryType] (I guess because the size differs). Is there another way to accomplish this in...