Rename TlsGdToLeSkip.
It will also be used for GT_TO_IE relaxations.
llvm-svn: 271813
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 193fa05..5a13ef0 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -159,7 +159,7 @@
}
C.Relocations.push_back(
{R_RELAX_TLS_GD_TO_LE, Type, Offset, Addend, &Body});
- return Target->TlsGdToLeSkip;
+ return Target->TlsGdRelaxSkip;
}
// Initial-Exec relocs can be relaxed to Local-Exec if the symbol is locally
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index dc63dae..2d871ce 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -278,7 +278,7 @@
TlsOffsetRel = R_386_TLS_DTPOFF32;
PltEntrySize = 16;
PltZeroSize = 16;
- TlsGdToLeSkip = 2;
+ TlsGdRelaxSkip = 2;
}
RelExpr X86TargetInfo::getRelExpr(uint32_t Type, const SymbolBody &S) const {
@@ -507,7 +507,7 @@
TlsOffsetRel = R_X86_64_DTPOFF64;
PltEntrySize = 16;
PltZeroSize = 16;
- TlsGdToLeSkip = 2;
+ TlsGdRelaxSkip = 2;
}
RelExpr X86_64TargetInfo::getRelExpr(uint32_t Type, const SymbolBody &S) const {
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h
index 65f2575..25ac2f2 100644
--- a/lld/ELF/Target.h
+++ b/lld/ELF/Target.h
@@ -57,7 +57,7 @@
virtual void relocateOne(uint8_t *Loc, uint32_t Type, uint64_t Val) const = 0;
virtual ~TargetInfo();
- unsigned TlsGdToLeSkip = 1;
+ unsigned TlsGdRelaxSkip = 1;
unsigned PageSize = 4096;
// On freebsd x86_64 the first page cannot be mmaped.