Rewrite BitReaderTest, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 1 Aug 2014 21:01:04 +0000 (21:01 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 1 Aug 2014 21:01:04 +0000 (21:01 +0000)
commit7a2990cfdbc8796870660f6c2cd63ed22cbc41ed
treea7ec5a0b092d04f273b4e8919c117caac443de42
parent1ba0a07e46c96e81c2f60dd8010ce592c2330119
Rewrite BitReaderTest, NFC

Rewrite the single unit test in `BitReaderTest` so that it's easier to
add more tests.

  - Parse from an assembly string rather than using API.
  - Use more helper functions.
  - Use a separate context for the module on the other side.

Aside from relying on the assembly parser, there's no functionality
change intended.

llvm-svn: 214556
llvm/unittests/Bitcode/BitReaderTest.cpp
llvm/unittests/Bitcode/CMakeLists.txt