[opaque pointer type] encode the pointee type of global variables
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 27 Apr 2015 19:58:56 +0000 (19:58 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 27 Apr 2015 19:58:56 +0000 (19:58 +0000)
commitd455682f390fc912e9001b909df59ec003f246f9
treeace59c9981de8fd163bbe9a4c849aa6d93a19016
parentdcc4f724cc3b8ff4d717bc602c8840b4f2929901
[opaque pointer type] encode the pointee type of global variables

Use a few extra bits in the const field (after widening it from a fixed
single bit) to stash the address space which is no longer provided by
the type (and an extra bit in there to specify that we're using that new
encoding).

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