summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Config.h4
-rw-r--r--lld/ELF/SyntheticSections.cpp8
-rw-r--r--lld/ELF/SyntheticSections.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index 890a255dc95..6c7b83d7364 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -163,7 +163,7 @@ struct Configuration {
unsigned ThinLTOJobs;
// Returns true if target is 64 bit.
- bool is64Bit() const { return EKind == ELF64LEKind || EKind == ELF64BEKind; }
+ bool is64() const { return EKind == ELF64LEKind || EKind == ELF64BEKind; }
// The ELF spec defines two types of relocation table entries, RELA and
// REL. RELA is a triplet of (offset, info, addend) while REL is a
@@ -181,7 +181,7 @@ struct Configuration {
// are using RELA too.
bool isRela() const {
bool IsX32Abi = (EKind == ELF32LEKind && EMachine == llvm::ELF::EM_X86_64);
- return is64Bit() || IsX32Abi || MipsN32Abi;
+ return is64() || IsX32Abi || MipsN32Abi;
}
// Returns true if we need to pass through relocations in input
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index 7c1c203d0e6..4a4fa5b6962 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -957,7 +957,7 @@ void GotPltSection::writeTo(uint8_t *Buf) {
Buf += Target->GotPltHeaderEntriesNum * Target->GotPltEntrySize;
for (const SymbolBody *B : Entries) {
Target->writeGotPlt(Buf, *B);
- Buf += Config->is64Bit() ? 8 : 4;
+ Buf += Config->is64() ? 8 : 4;
}
}
@@ -981,7 +981,7 @@ size_t IgotPltSection::getSize() const {
void IgotPltSection::writeTo(uint8_t *Buf) {
for (const SymbolBody *B : Entries) {
Target->writeIgotPlt(Buf, *B);
- Buf += Config->is64Bit() ? 8 : 4;
+ Buf += Config->is64() ? 8 : 4;
}
}
@@ -2204,7 +2204,7 @@ size_t MergeSyntheticSection::getSize() const {
MipsRldMapSection::MipsRldMapSection()
: SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS,
- Config->is64Bit() ? 8 : 4, ".rld_map") {}
+ Config->is64() ? 8 : 4, ".rld_map") {}
void MipsRldMapSection::writeTo(uint8_t *Buf) {
// Apply filler from linker script.
@@ -2236,7 +2236,7 @@ void ARMExidxSentinelSection<ELFT>::writeTo(uint8_t *Buf) {
ThunkSection::ThunkSection(OutputSection *OS, uint64_t Off)
: SyntheticSection(SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS,
- Config->is64Bit() ? 8 : 4, ".text.thunk") {
+ Config->is64() ? 8 : 4, ".text.thunk") {
this->OutSec = OS;
this->OutSecOff = Off;
}
diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h
index b85c1e85502..1ae6318e25b 100644
--- a/lld/ELF/SyntheticSections.h
+++ b/lld/ELF/SyntheticSections.h
@@ -712,7 +712,7 @@ private:
class MipsRldMapSection : public SyntheticSection {
public:
MipsRldMapSection();
- size_t getSize() const override { return Config->is64Bit() ? 8 : 4; }
+ size_t getSize() const override { return Config->is64() ? 8 : 4; }
void writeTo(uint8_t *Buf) override;
};
OpenPOWER on IntegriCloud