mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-06 10:38:54 +00:00
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
This commit is contained in:
parent
ad3aa5eb5a
commit
387fe1eff4
@ -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…
x
Reference in New Issue
Block a user