From: Eric Christopher Date: Tue, 10 Jun 2014 20:39:39 +0000 (+0000) Subject: We already have a reference to the TargetMachine, use that. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=387fe1eff445d3e3a5c2e6ae5b715fab35a08d54;p=llvm We already have a reference to the TargetMachine, use that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210580 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/GlobalMerge.cpp b/lib/Transforms/Scalar/GlobalMerge.cpp index dd9c3784cc2..16f20997b5f 100644 --- a/lib/Transforms/Scalar/GlobalMerge.cpp +++ b/lib/Transforms/Scalar/GlobalMerge.cpp @@ -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);