diff options
author | Alex Bradbury <asb@lowrisc.org> | 2019-07-16 03:47:34 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2019-07-16 03:47:34 +0000 |
commit | 4ac0b9be230596e24e439109f2d23ea3dd81ebfd (patch) | |
tree | a93eeecaa60c52698e0d7a0d8b463491b5c5f865 /clang/lib/Frontend/FrontendActions.cpp | |
parent | e5c4b468f06307bc1b8341af9ccf9dd69fa890f4 (diff) | |
download | bcm5719-llvm-4ac0b9be230596e24e439109f2d23ea3dd81ebfd.tar.gz bcm5719-llvm-4ac0b9be230596e24e439109f2d23ea3dd81ebfd.zip |
[RISCV] Make RISCVELFObjectWriter::getRelocType check IsPCRel
Previously, this function didn't check the IsPCRel argument. But doing so is a
useful check for errors, and also seemingly necessary for FK_Data_4 (which we
produce a R_RISCV_32_PCREL relocation for if IsPCRel).
Other than R_RISCV_32_PCREL, this should be NFC. Future exception handling
related patches will include tests that capture this behaviour.
llvm-svn: 366172
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions