mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 20:53:29 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user