IR: Reorder metadata bitcode serialization, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 21 Oct 2014 22:27:47 +0000 (22:27 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 21 Oct 2014 22:27:47 +0000 (22:27 +0000)
commitcb3866e72e98ce77080deffd008b1d8e9b7d5301
treede32378e7d8a23f0dd86ab32d0b57939dd2cc07d
parentc68710c02d11614a7553329d5561d8fc21829ca9
IR: Reorder metadata bitcode serialization, NFC

Enumerate `MDNode`'s operands *before* the node itself, so that the
reader requires less RAUW.  Although this will cause different code
paths to be hit in the reader, this should effectively be no
functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/ValueEnumerator.cpp