BitcodeWriter: Simplify tracking of function-local metadata, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 27 Mar 2016 23:22:31 +0000 (23:22 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 27 Mar 2016 23:22:31 +0000 (23:22 +0000)
commit2766e4d4886c47a310b323c8f400162f6dd9b046
tree0e152e47ad90e1b664eb8ab90f607918d49a2ed9
parent6565a0d4b2c98722eb8fee9093cdde4f37928986
BitcodeWriter: Simplify tracking of function-local metadata, NFC

We don't really need a separate vector here; instead, point at a range
inside the main MDs array.  This matches how r264551 references the
ranges of strings and non-strings.

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