We already have a reference to the TargetMachine, use that.

llvm-svn: 210580
This commit is contained in:
Eric Christopher 2014-06-10 20:39:39 +00:00
parent 576d36ae05
commit 2af33756c7
1 changed files with 1 additions and 2 deletions

View File

@ -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);