Revert "[opaque pointer type] Pass GlobalAlias the actual pointer type rather than...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 14 Sep 2015 18:01:59 +0000 (18:01 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 14 Sep 2015 18:01:59 +0000 (18:01 +0000)
commit2d35348660127118b357c2ac8f0247460243173a
tree99b99add8312e47e5690bfdebe68454302387d87
parent97095fc404d5bc58e411c193e8e86709a8c8e646
Revert "[opaque pointer type] Pass GlobalAlias the actual pointer type rather than decomposing it into pointee type + address space"

This was a flawed change - it just caused the getElementType call to be
deferred until later, when we really need to remove it. Now that the IR
for GlobalAliases has been updated, the root cause is addressed that way
instead and this change is no longer needed (and in fact gets in the way
- because we want to pass the pointee type directly down further).

Follow up patches to push this through GlobalValue, bitcode format, etc,
will come along soon.

This reverts commit 236160.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247585 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/GlobalAlias.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/CodeGen/GlobalMerge.cpp
lib/IR/Core.cpp
lib/IR/Globals.cpp
lib/Linker/LinkModules.cpp
lib/Transforms/IPO/LowerBitSets.cpp
lib/Transforms/IPO/MergeFunctions.cpp
lib/Transforms/Utils/CloneModule.cpp
unittests/IR/ConstantsTest.cpp