BitcodeWriter: Simplify and test writing blobs, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 27 Mar 2016 23:04:04 +0000 (23:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sun, 27 Mar 2016 23:04:04 +0000 (23:04 +0000)
commit376fa2606069cdd5840fd035312bad027d8b2428
treef6b60b610d44acb90b5f61b8d62ac9965e33535f
parent456c9968e51cc015f803cca1063703fbbc6fe958
BitcodeWriter: Simplify and test writing blobs, NFC

Split helper out of EmitRecordWithAbbrevImpl called emitBlob to reduce
code duplication, and add a few tests for it.

No functionality change intended.

llvm-svn: 264550
llvm/include/llvm/Bitcode/BitstreamWriter.h
llvm/unittests/Bitcode/BitstreamWriterTest.cpp [new file with mode: 0644]
llvm/unittests/Bitcode/CMakeLists.txt