llvm-6502/include/llvm/Bitcode
Tobias Grosser e7bc5bb862 Make .bc en/decoding of AttrKind stable
The bitcode representation attribute kinds are encoded into / decoded from
should be independent of the current set of LLVM attributes and their position
in the AttrKind enum. This patch explicitly encodes attributes to fixed bitcode
values.

With this patch applied, LLVM does not silently misread attributes written by
LLVM 3.3. We also enhance the decoding slightly such that an error message is
printed if an unknown AttrKind encoding was dected.

Bonus: Dropping bitcode attributes from AttrKind is now easy, as old AttrKinds
       do not need to be kept to support the Bitcode reader.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187186 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-26 04:16:55 +00:00
..
BitCodes.h
BitstreamReader.h Remove the Copied parameter from MemoryObject::readBytes. 2013-05-24 10:54:58 +00:00
BitstreamWriter.h Rewrite assert to avoid warning when the record element type is byte-sized. 2013-05-09 21:07:43 +00:00
LLVMBitCodes.h Make .bc en/decoding of AttrKind stable 2013-07-26 04:16:55 +00:00
ReaderWriter.h Fix include guards so they exactly match file names. 2013-01-10 00:45:19 +00:00