diff options
| author | Hans Wennborg <hans@chromium.org> | 2020-02-27 12:35:10 +0100 |
|---|---|---|
| committer | Hans Wennborg <hans@chromium.org> | 2020-02-27 12:44:06 +0100 |
| commit | 058a8cd73f33ae7be7bef469c1b7c2d5fdaa4b24 (patch) | |
| tree | 39da9d45115469db70776cb26a1f08789072a879 /llvm/include | |
| parent | 593a0dda7a683df9b3744c6391bb2f8de9ed5908 (diff) | |
| download | bcm5719-llvm-058a8cd73f33ae7be7bef469c1b7c2d5fdaa4b24.tar.gz bcm5719-llvm-058a8cd73f33ae7be7bef469c1b7c2d5fdaa4b24.zip | |
[MC][ARM] Resolve some pcrel fixups at assembly time (PR44929)
MC currently does not emit these relocation types, and lld does not
handle them. Add FKF_Constant as a work-around of some ARM code after
D72197. Eventually we probably should implement these relocation types.
By Fangrui Song!
Differential revision: https://reviews.llvm.org/D72892
(cherry picked from commit 2e24219d3cbfcb8c824c58872f97de0a2e94a7c8)
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/MC/MCFixupKindInfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCFixupKindInfo.h b/llvm/include/llvm/MC/MCFixupKindInfo.h index 0d57441ce0d..ecf85fa5693 100644 --- a/llvm/include/llvm/MC/MCFixupKindInfo.h +++ b/llvm/include/llvm/MC/MCFixupKindInfo.h @@ -22,7 +22,12 @@ struct MCFixupKindInfo { FKF_IsAlignedDownTo32Bits = (1 << 1), /// Should this fixup be evaluated in a target dependent manner? - FKF_IsTarget = (1 << 2) + FKF_IsTarget = (1 << 2), + + /// This fixup kind should be resolved if defined. + /// FIXME This is a workaround because we don't support certain ARM + /// relocation types. This flag should eventually be removed. + FKF_Constant = 1 << 3, }; /// A target specific name for the fixup kind. The names will be unique for |

