HomePhabricator

Bitcode: add some convenience helpers for streaming bitcode

Authored by compnerd on Sep 29 2020, 2:16 PM.

Description

Bitcode: add some convenience helpers for streaming bitcode

This adds a set of metaprogramming helpers to help define records and
serialize them out. This is motivated by API Notes which use the
bitcode format to serialize out a binary representation of the data.
These helpers are generically useful though and could help simplify some
of the existing bitcode consumers as well.

This is extracted from the code contributed by Apple at
https://github.com/llvm/llvm-project-staging/tree/staging/swift/apinotes.

Differential Revision: https://reviews.llvm.org/D88582

Details

Committed
compnerdDec 8 2020, 1:15 PM
Differential Revision
D88582: Bitcode: add some convenience helpers for streaming bitcode
Parents
rG843f2dbf003f: [Driver] Don't make -gsplit-dwarf imply -g2
Branches
Unknown
Tags
Unknown