forked from OSchip/llvm-project
We already have a reference to the TargetMachine, use that.
llvm-svn: 210580
This commit is contained in:
parent
576d36ae05
commit
2af33756c7
|
@ -270,8 +270,7 @@ bool GlobalMerge::doInitialization(Module &M) {
|
|||
continue;
|
||||
|
||||
if (DL->getTypeAllocSize(Ty) < MaxOffset) {
|
||||
if (TargetLoweringObjectFile::getKindForGlobal(I, TLI->getTargetMachine())
|
||||
.isBSSLocal())
|
||||
if (TargetLoweringObjectFile::getKindForGlobal(I, *TM).isBSSLocal())
|
||||
BSSGlobals[AddressSpace].push_back(I);
|
||||
else if (I->isConstant())
|
||||
ConstGlobals[AddressSpace].push_back(I);
|
||||
|
|
Loading…
Reference in New Issue