[llvm] r225715 - Bitcode: Add abbreviation for METADATA_NAME

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Jan 13 10:55:56 PST 2015


> On 2015-Jan-13, at 10:04, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> 
> On 13 January 2015 at 12:59, Rafael EspĂ­ndola
> <rafael.espindola at gmail.com> wrote:
>>> +    Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Array));
>>> +    Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 8));
>> 
>> What is the fixed 8?
> 
> Never mind, I just found out that Arrays must be second to last.

For anyone else: arrays must be the second-to-last element (where the last
element describes what's in the array) [1].

[1]: http://llvm.org/docs/BitCodeFormat.html#define-abbrev-encoding



More information about the llvm-commits mailing list