[opaque pointer type] Pass GlobalAlias the actual pointer type rather than decomposin...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 29 Apr 2015 21:22:39 +0000 (21:22 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 29 Apr 2015 21:22:39 +0000 (21:22 +0000)
commit39e7388a193f9e0b7d161b37ff133fe19764a7a8
tree77ebef9b7dd8cb776072155549ebf2a14e349218
parenta19abeb7abaa80b946c593164a08c3d230183a95
[opaque pointer type] Pass GlobalAlias the actual pointer type rather than decomposing it into pointee type + address space

Many of the callers already have the pointer type anyway, and for the
couple of callers that don't it's pretty easy to call PointerType::get
on the pointee type and address space.

This avoids LLParser from using PointerType::getElementType when parsing
GlobalAliases from IR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236160 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/IR/GlobalAlias.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/CodeGen/GlobalMerge.cpp
lib/ExecutionEngine/Orc/CloneSubModule.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