BitcodeWriter: Split out named metadata; almost NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 24 Mar 2016 16:16:08 +0000 (16:16 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 24 Mar 2016 16:16:08 +0000 (16:16 +0000)
commitf8ecdf528459b309ea55c593ed2748443d14878e
tree60f5c2425020115c4abe753b83ddce27bf246f4d
parentb7807a0c8e2a79dda70545e62a09bea24327bbb1
BitcodeWriter: Split out named metadata; almost NFC

Split writeNamedMetadata out of WriteModuleMetadata to write named
metadata, and createNamedMetadataAbbrev for the abbreviation.

There should be no effective functionality change, although the layout
of the bitcode will change.  Previously, the abbreviation was emitted at
the top of the block, but now it is delayed until immediately before the
named metadata records are emitted.

llvm-svn: 264301
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp