[llvm] ae3d313 - VE: Remove dead FK_PCRel_* code
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 21:31:18 PDT 2025
Author: Fangrui Song
Date: 2025-07-04T21:31:14-07:00
New Revision: ae3d3135277a34fbaba75bc2eec5fb8bfd308b64
URL: https://github.com/llvm/llvm-project/commit/ae3d3135277a34fbaba75bc2eec5fb8bfd308b64
DIFF: https://github.com/llvm/llvm-project/commit/ae3d3135277a34fbaba75bc2eec5fb8bfd308b64.diff
LOG: VE: Remove dead FK_PCRel_* code
Added:
Modified:
llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp
llvm/lib/Target/VE/MCTargetDesc/VEELFObjectWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp b/llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp
index 16b6a9acf8e61..76b2985b349e4 100644
--- a/llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp
+++ b/llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp
@@ -59,7 +59,6 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
return 1;
case FK_Data_2:
return 2;
- return 4;
case FK_Data_4:
case VE::fixup_ve_reflong:
case VE::fixup_ve_srel32:
@@ -79,7 +78,6 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
case VE::fixup_ve_tpoff_lo32:
return 4;
case FK_Data_8:
- case FK_PCRel_8:
return 8;
}
}
diff --git a/llvm/lib/Target/VE/MCTargetDesc/VEELFObjectWriter.cpp b/llvm/lib/Target/VE/MCTargetDesc/VEELFObjectWriter.cpp
index 6c856a2a08f27..1597e7d080f03 100644
--- a/llvm/lib/Target/VE/MCTargetDesc/VEELFObjectWriter.cpp
+++ b/llvm/lib/Target/VE/MCTargetDesc/VEELFObjectWriter.cpp
@@ -61,7 +61,6 @@ unsigned VEELFObjectWriter::getRelocType(const MCFixup &Fixup,
reportError(Fixup.getLoc(), "Unsupported pc-relative fixup kind");
return ELF::R_VE_NONE;
case FK_Data_1:
- case FK_PCRel_1:
reportError(Fixup.getLoc(),
"1-byte pc-relative data relocation is not supported");
return ELF::R_VE_NONE;
@@ -72,7 +71,6 @@ unsigned VEELFObjectWriter::getRelocType(const MCFixup &Fixup,
case FK_Data_4:
return ELF::R_VE_SREL32;
case FK_Data_8:
- case FK_PCRel_8:
reportError(Fixup.getLoc(),
"8-byte pc-relative data relocation is not supported");
return ELF::R_VE_NONE;
More information about the llvm-commits
mailing list