BitcodeWriter: Refactor common computation of bits required for a type index.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 25 Feb 2015 00:51:52 +0000 (00:51 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 25 Feb 2015 00:51:52 +0000 (00:51 +0000)
commit6bc72f8262ba0679576ce01d79abe4d6564c9167
tree1b1213cfc26977673a4fcdad856e388245f1ab78
parentb4ecacfe06a9f33878aff52256d4130334d661ae
BitcodeWriter: Refactor common computation of bits required for a type index.

Suggested by Duncan. Happy to bikeshed the name, cache the result, etc.

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