Delete comparison with GlobalOffsetTable.

Now that _GLOBAL_OFFSET_TABLE_ is defined, we can just use R_PC for it
if needed.

llvm-svn: 306614
This commit is contained in:
Rafael Espindola 2017-06-28 23:19:32 +00:00
parent d159c688aa
commit b04290569c
1 changed files with 0 additions and 3 deletions

View File

@ -56,9 +56,6 @@ RelExpr SPARCV9::getRelExpr(uint32_t Type, const SymbolBody &S,
return R_ABS;
case R_SPARC_PC10:
case R_SPARC_PC22:
if (&S == ElfSym::GlobalOffsetTable)
return R_GOTONLY_PC;
LLVM_FALLTHROUGH;
case R_SPARC_DISP32:
case R_SPARC_WDISP30:
return R_PC;