Skip to content

Commit b042905

Browse files
committed
Delete comparison with GlobalOffsetTable.
Now that _GLOBAL_OFFSET_TABLE_ is defined, we can just use R_PC for it if needed. llvm-svn: 306614
1 parent d159c68 commit b042905

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lld/ELF/Arch/SPARCV9.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ RelExpr SPARCV9::getRelExpr(uint32_t Type, const SymbolBody &S,
5656
return R_ABS;
5757
case R_SPARC_PC10:
5858
case R_SPARC_PC22:
59-
if (&S == ElfSym::GlobalOffsetTable)
60-
return R_GOTONLY_PC;
61-
LLVM_FALLTHROUGH;
6259
case R_SPARC_DISP32:
6360
case R_SPARC_WDISP30:
6461
return R_PC;

0 commit comments

Comments
 (0)