[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)
commitf64246be723d3acae52227e7ed612595c6a84d46
tree72875d5a5a0a942f599df1cc831240ce89bcccfa
parent6e0ebaea1fe18543bf5a371bba769a86f37d688d
[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.

llvm-svn: 236160
12 files changed:
llvm/include/llvm/IR/GlobalAlias.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/CodeGen/GlobalMerge.cpp
llvm/lib/ExecutionEngine/Orc/CloneSubModule.cpp
llvm/lib/IR/Core.cpp
llvm/lib/IR/Globals.cpp
llvm/lib/Linker/LinkModules.cpp
llvm/lib/Transforms/IPO/LowerBitSets.cpp
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/lib/Transforms/Utils/CloneModule.cpp
llvm/unittests/IR/ConstantsTest.cpp