mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 03:17:51 +00:00
doesSetDirectiveSuppressesReloc -> doesSetDirectiveSuppressReloc, the
former is grammatically incorrect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c59f0ca01
commit
847e77d817
@ -497,7 +497,7 @@ public:
|
||||
bool getAlignmentIsInBytes() const { return AlignmentIsInBytes; }
|
||||
unsigned getTextAlignFillValue() const { return TextAlignFillValue; }
|
||||
const char *getGlobalDirective() const { return GlobalDirective; }
|
||||
bool doesSetDirectiveSuppressesReloc() const {
|
||||
bool doesSetDirectiveSuppressReloc() const {
|
||||
return SetDirectiveSuppressesReloc;
|
||||
}
|
||||
bool hasAggressiveSymbolFolding() const { return HasAggressiveSymbolFolding; }
|
||||
|
@ -1412,7 +1412,7 @@ void AsmPrinter::EmitJumpTableInfo() {
|
||||
// For the EK_LabelDifference32 entry, if using .set avoids a relocation,
|
||||
/// emit a .set directive for each unique entry.
|
||||
if (MJTI->getEntryKind() == MachineJumpTableInfo::EK_LabelDifference32 &&
|
||||
MAI->doesSetDirectiveSuppressesReloc()) {
|
||||
MAI->doesSetDirectiveSuppressReloc()) {
|
||||
SmallPtrSet<const MachineBasicBlock*, 16> EmittedSets;
|
||||
const TargetLowering *TLI = MF->getSubtarget().getTargetLowering();
|
||||
const MCExpr *Base = TLI->getPICJumpTableRelocBaseExpr(MF,JTI,OutContext);
|
||||
@ -1493,7 +1493,7 @@ void AsmPrinter::EmitJumpTableEntry(const MachineJumpTableInfo *MJTI,
|
||||
// If the .set directive avoids relocations, this is emitted as:
|
||||
// .set L4_5_set_123, LBB123 - LJTI1_2
|
||||
// .word L4_5_set_123
|
||||
if (MAI->doesSetDirectiveSuppressesReloc()) {
|
||||
if (MAI->doesSetDirectiveSuppressReloc()) {
|
||||
Value = MCSymbolRefExpr::create(GetJTSetSymbol(UID, MBB->getNumber()),
|
||||
OutContext);
|
||||
break;
|
||||
|
@ -734,7 +734,7 @@ void MCStreamer::emitAbsoluteSymbolDiff(const MCSymbol *Hi, const MCSymbol *Lo,
|
||||
MCSymbolRefExpr::create(Lo, Context), Context);
|
||||
|
||||
const MCAsmInfo *MAI = Context.getAsmInfo();
|
||||
if (!MAI->doesSetDirectiveSuppressesReloc()) {
|
||||
if (!MAI->doesSetDirectiveSuppressReloc()) {
|
||||
EmitValue(Diff, Size);
|
||||
return;
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ MCOperand X86MCInstLower::LowerSymbolOperand(const MachineOperand &MO,
|
||||
MCSymbolRefExpr::create(MF.getPICBaseSymbol(), Ctx),
|
||||
Ctx);
|
||||
if (MO.isJTI()) {
|
||||
assert(MAI.doesSetDirectiveSuppressesReloc());
|
||||
assert(MAI.doesSetDirectiveSuppressReloc());
|
||||
// If .set directive is supported, use it to reduce the number of
|
||||
// relocations the assembler will generate for differences between
|
||||
// local labels. This is only safe when the symbols are in the same
|
||||
|
Loading…
x
Reference in New Issue
Block a user