diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-20 19:48:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-20 19:48:54 +0000 |
commit | bdfbde56e03a328f45c8f25dbb1a5b6f6361265b (patch) | |
tree | 3cdbd76037579cf77964e84deeb6682544ae613f /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | d3a057733f2f584f26c2f6529f1161ec93343e51 (diff) | |
download | llvm-bdfbde56e03a328f45c8f25dbb1a5b6f6361265b.zip llvm-bdfbde56e03a328f45c8f25dbb1a5b6f6361265b.tar.gz llvm-bdfbde56e03a328f45c8f25dbb1a5b6f6361265b.tar.bz2 |
Reorganize the x86 ELF relocation selection logic.
The main differences are:
* Split in 32 and 64 bit functions.
* First switch on the Modifier so that we have only one non fully covered
switch.
* Map the fixup kind first to a x86_64 (or i386) specific enum, to make
it easy to handle cases like X86::reloc_riprel_4byte_movq_load.
* Switch on IsPCRel last, which reduces code duplication.
Fixes pr22308.
llvm-svn: 232837
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions