diff options
author | Rui Ueyama <ruiu@google.com> | 2017-10-12 20:42:15 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-10-12 20:42:15 +0000 |
commit | ab295741dd752aab924408d81201436eeb2a33f4 (patch) | |
tree | 8648f16ed864e43ce7259ef8d6422edec36da60e /llvm/lib/Transforms/Scalar/SCCP.cpp | |
parent | b4527e1ce2fa1ec4600295a127867aeb876ff8dd (diff) | |
download | bcm5719-llvm-ab295741dd752aab924408d81201436eeb2a33f4.tar.gz bcm5719-llvm-ab295741dd752aab924408d81201436eeb2a33f4.zip |
Handle MIPS-specific addend rules in computeAddend().
This patch merges computeAddend and computeMipsAddend.
Getting an addend for a relocation is usually pretty easy:
it is either in the r_addend field (if RELA) or in a target
section (if REL).
However, MIPS has many special rules that are different from
other ELF ABIs. I don't think there were technical reasons to
be different, but the reality is that they are different.
It is unfortunate that we had to pass many parameters to
computeAddend, but it seems unavoidable because of MIPS.
llvm-svn: 315617
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
0 files changed, 0 insertions, 0 deletions