mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 14:20:33 +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
|
||||
/// FIXME: The defaults need to be removed once all of
|
||||
/// the backends/clients are updated.
|
||||
unsigned getPointerABIAlignment(unsigned AS = 0) const;
|
||||
unsigned getPointerABIAlignment(unsigned AS) const;
|
||||
|
||||
/// Return target's alignment for stack-based pointers
|
||||
/// FIXME: The defaults need to be removed once all of
|
||||
|
@ -593,7 +593,7 @@ void IRTranslator::getStackGuard(unsigned DstReg,
|
||||
MachineMemOperand::MODereferenceable;
|
||||
*MemRefs =
|
||||
MF->getMachineMemOperand(MPInfo, Flags, DL->getPointerSizeInBits() / 8,
|
||||
DL->getPointerABIAlignment());
|
||||
DL->getPointerABIAlignment(0));
|
||||
MIB.setMemRefs(MemRefs, MemRefs + 1);
|
||||
}
|
||||
|
||||
|
@ -852,7 +852,7 @@ unsigned MachineJumpTableInfo::getEntryAlignment(const DataLayout &TD) const {
|
||||
// alignment.
|
||||
switch (getEntryKind()) {
|
||||
case MachineJumpTableInfo::EK_BlockAddress:
|
||||
return TD.getPointerABIAlignment();
|
||||
return TD.getPointerABIAlignment(0);
|
||||
case MachineJumpTableInfo::EK_GPRel64BlockAddress:
|
||||
return TD.getABIIntegerTypeAlignment(64);
|
||||
case MachineJumpTableInfo::EK_GPRel32BlockAddress:
|
||||
|
@ -134,7 +134,7 @@ void TargetLoweringObjectFileELF::emitPersonalityValue(
|
||||
ELF::SHT_PROGBITS, Flags, 0);
|
||||
unsigned Size = DL.getPointerSize();
|
||||
Streamer.SwitchSection(Sec);
|
||||
Streamer.EmitValueToAlignment(DL.getPointerABIAlignment());
|
||||
Streamer.EmitValueToAlignment(DL.getPointerABIAlignment(0));
|
||||
Streamer.EmitSymbolAttribute(Label, MCSA_ELF_TypeObject);
|
||||
const MCExpr *E = MCConstantExpr::create(Size, getContext());
|
||||
Streamer.emitELFSize(Label, E);
|
||||
|
Loading…
Reference in New Issue
Block a user