OSDN Git Service

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)
commit2e9b60aea8c9a6a46cc35bf4c3b82d875ef2c750
treeba13fad3429da832b2122ec993df0cdea7d38373
parentab418066a27f9297d7786d4d1c0542410ade58e6
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214556 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Bitcode/BitReaderTest.cpp
unittests/Bitcode/CMakeLists.txt