forked from OSchip/llvm-project
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:
parent
d159c688aa
commit
b04290569c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue