mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-06 12:04:48 +00:00
NFC Remove default argument of DataLayout::getPointerABIAlignment
Differential Revision: https://reviews.llvm.org/D40005 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c2f0e01cab
commit
0b5d88f3e0
@ -309,9 +309,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Layout pointer alignment
|
/// Layout pointer alignment
|
||||||
/// FIXME: The defaults need to be removed once all of
|
unsigned getPointerABIAlignment(unsigned AS) const;
|
||||||
/// the backends/clients are updated.
|
|
||||||
unsigned getPointerABIAlignment(unsigned AS = 0) const;
|
|
||||||
|
|
||||||
/// Return target's alignment for stack-based pointers
|
/// Return target's alignment for stack-based pointers
|
||||||
/// FIXME: The defaults need to be removed once all of
|
/// FIXME: The defaults need to be removed once all of
|
||||||
|
@ -593,7 +593,7 @@ void IRTranslator::getStackGuard(unsigned DstReg,
|
|||||||
MachineMemOperand::MODereferenceable;
|
MachineMemOperand::MODereferenceable;
|
||||||
*MemRefs =
|
*MemRefs =
|
||||||
MF->getMachineMemOperand(MPInfo, Flags, DL->getPointerSizeInBits() / 8,
|
MF->getMachineMemOperand(MPInfo, Flags, DL->getPointerSizeInBits() / 8,
|
||||||
DL->getPointerABIAlignment());
|
DL->getPointerABIAlignment(0));
|
||||||
MIB.setMemRefs(MemRefs, MemRefs + 1);
|
MIB.setMemRefs(MemRefs, MemRefs + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -852,7 +852,7 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const DataLayout &TD) const {
|
|||||||
// alignment.
|
// alignment.
|
||||||
switch (getEntryKind()) {
|
switch (getEntryKind()) {
|
||||||
case MachineJumpTableInfo::EK_BlockAddress:
|
case MachineJumpTableInfo::EK_BlockAddress:
|
||||||
return TD.getPointerABIAlignment();
|
return TD.getPointerABIAlignment(0);
|
||||||
case MachineJumpTableInfo::EK_GPRel64BlockAddress:
|
case MachineJumpTableInfo::EK_GPRel64BlockAddress:
|
||||||
return TD.getABIIntegerTypeAlignment(64);
|
return TD.getABIIntegerTypeAlignment(64);
|
||||||
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
|
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
|
||||||
|
@ -134,7 +134,7 @@ void TargetLoweringObjectFileELF::emitPersonalityValue(
|
|||||||
ELF::SHT_PROGBITS, Flags, 0);
|
ELF::SHT_PROGBITS, Flags, 0);
|
||||||
unsigned Size = DL.getPointerSize();
|
unsigned Size = DL.getPointerSize();
|
||||||
Streamer.SwitchSection(Sec);
|
Streamer.SwitchSection(Sec);
|
||||||
Streamer.EmitValueToAlignment(DL.getPointerABIAlignment());
|
Streamer.EmitValueToAlignment(DL.getPointerABIAlignment(0));
|
||||||
Streamer.EmitSymbolAttribute(Label, MCSA_ELF_TypeObject);
|
Streamer.EmitSymbolAttribute(Label, MCSA_ELF_TypeObject);
|
||||||
const MCExpr *E = MCConstantExpr::create(Size, getContext());
|
const MCExpr *E = MCConstantExpr::create(Size, getContext());
|
||||||
Streamer.emitELFSize(Label, E);
|
Streamer.emitELFSize(Label, E);
|
||||||
|
Loading…
Reference in New Issue
Block a user