BitcodeWriter: Move abbreviation for DILocation; almost NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 24 Mar 2016 16:25:51 +0000 (16:25 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 24 Mar 2016 16:25:51 +0000 (16:25 +0000)
commit625fda2714acd03ea7c38887e827735d2af3102f
tree78981feb135d3a0259cb221a3b6da08f2dc9d827
parentf8ecdf528459b309ea55c593ed2748443d14878e
BitcodeWriter: Move abbreviation for DILocation; almost NFC

Simplify ValueEnumerator and WriteModuleMetadata by shifting the logic
for the METADATA_LOCATION abbreviation into WriteDILocation.

The only change is that the abbreviation is emitted later in the
bitcode, just before the first `DILocation` record.  This shouldn't be
observable though.

llvm-svn: 264302
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.h