Commit Graph

1052 Commits

Author SHA1 Message Date
Jordan Rose
5be5607a0f [serialization] Write a BLOCKINFO block so llvm-bcanalyzer is useful.
This adds names to the other blocks and records in the file.

The tests now require llvm-bcanalyzer to run; please build that along
with 'FileCheck' and 'not'.

Swift SVN r5109
2013-05-09 00:19:10 +00:00
Jordan Rose
c8ecd0ba25 [serialization] Add a metaprogramming system for bitcode record layout.
Alternately, "add a system of ridiculous overkill for bitcode record layout",
in the spirit of DRY over YAGNI. It /is/ much more concise than the LLVM way.

Use this to emit a sketch of Clang's PCH control block, although nothing's in
there yet besides "version 1.0" and the LLVM revision number; the latter is
more "proof of concept" than actually useful. We should figure out a good
way to identify trunk Swift compilers; this shouldn't be difficult.

Swift SVN r5107
2013-05-08 23:29:52 +00:00