Skip to content

Commit dca0ccf

Browse files
committed
LoongArch: Remove unreachable TLS fixup from adjustFixupValue
1 parent 40789ce commit dca0ccf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,12 @@ static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
120120
return ((Value & 0x3fffc) << 8) | ((Value >> 18) & 0x3ff);
121121
}
122122
case LoongArch::fixup_loongarch_abs_hi20:
123-
case LoongArch::fixup_loongarch_tls_le_hi20:
124123
return (Value >> 12) & 0xfffff;
125124
case LoongArch::fixup_loongarch_abs_lo12:
126-
case LoongArch::fixup_loongarch_tls_le_lo12:
127125
return Value & 0xfff;
128126
case LoongArch::fixup_loongarch_abs64_lo20:
129-
case LoongArch::fixup_loongarch_tls_le64_lo20:
130127
return (Value >> 32) & 0xfffff;
131128
case LoongArch::fixup_loongarch_abs64_hi12:
132-
case LoongArch::fixup_loongarch_tls_le64_hi12:
133129
return (Value >> 52) & 0xfff;
134130
}
135131
}

0 commit comments

Comments
 (0)