Change EmitRecordWithAbbrevImpl to take Optional record code. NFC.
authorTeresa Johnson <tejohnson@google.com>
Wed, 9 Sep 2015 20:53:31 +0000 (20:53 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 9 Sep 2015 20:53:31 +0000 (20:53 +0000)
commitd08fb26a14516282e7a1a8f82219c3962667ead3
tree358819cb4074b989a13f63df101a82887aa8bd7b
parenta0c949050a42ec36efa8db0e351cc8fd8140a4c8
Change EmitRecordWithAbbrevImpl to take Optional record code. NFC.

This change enables EmitRecord to pass the supplied record Code to
EmitRecordWithAbbrevImpl, rather than insert it into the Vals array.
It is an enabler for changing EmitRecord to take an ArrayRef<uintty> instead
of a SmallVectorImpl<uintty>&

Patch suggested by Duncan P. N. Exon Smith, modified by myself a bit to get
correct assertion checking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247186 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/BitstreamWriter.h