[llvm] r210580 - We already have a reference to the TargetMachine, use that.
Eric Christopher
echristo at gmail.com
Tue Jun 10 13:39:40 PDT 2014
Author: echristo
Date: Tue Jun 10 15:39:39 2014
New Revision: 210580
URL: http://llvm.org/viewvc/llvm-project?rev=210580&view=rev
Log:
We already have a reference to the TargetMachine, use that.
Modified:
llvm/trunk/lib/Transforms/Scalar/GlobalMerge.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GlobalMerge.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GlobalMerge.cpp?rev=210580&r1=210579&r2=210580&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GlobalMerge.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GlobalMerge.cpp Tue Jun 10 15:39:39 2014
@@ -270,8 +270,7 @@ bool GlobalMerge::doInitialization(Modul
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);
More information about the llvm-commits
mailing list