Skip to content

Commit 351a9c2

Browse files
committed
modify tlsIeToLe type to static
1 parent 6b567c2 commit 351a9c2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: lld/ELF/Arch/LoongArch.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class LoongArch final : public TargetInfo {
4141
bool relaxOnce(int pass) const override;
4242
void relocateAlloc(InputSectionBase &sec, uint8_t *buf) const override;
4343
void finalizeRelax(int passes) const override;
44-
45-
private:
46-
void tlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) const;
4744
};
4845
} // end anonymous namespace
4946

@@ -1019,8 +1016,7 @@ static bool relax(Ctx &ctx, InputSection &sec) {
10191016
// # otherwise, src = $zero
10201017
//
10211018
// When relaxation enables, redundant NOPs can be removed.
1022-
void LoongArch::tlsIeToLe(uint8_t *loc, const Relocation &rel,
1023-
uint64_t val) const {
1019+
static void tlsIeToLe(uint8_t *loc, const Relocation &rel, uint64_t val) {
10241020
assert(isInt<32>(val) &&
10251021
"val exceeds the range of medium code model in tlsIeToLe");
10261022

0 commit comments

Comments
 (0)