search for: vtableentrytype

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

2008 Sep 03
1
[LLVMdev] Creating global data with [ 0 x ... ] type
...s well as a typical vtable list-of-function-pointers. I need to have the vtable "inlined" into the metadata, in that I don't want an extra indirection by storing a pointer 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,...