Skip to content

Commit ae3d313

Browse files
committed
VE: Remove dead FK_PCRel_* code
1 parent c05593b commit ae3d313

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

llvm/lib/Target/VE/MCTargetDesc/VEAsmBackend.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
5959
return 1;
6060
case FK_Data_2:
6161
return 2;
62-
return 4;
6362
case FK_Data_4:
6463
case VE::fixup_ve_reflong:
6564
case VE::fixup_ve_srel32:
@@ -79,7 +78,6 @@ static unsigned getFixupKindNumBytes(unsigned Kind) {
7978
case VE::fixup_ve_tpoff_lo32:
8079
return 4;
8180
case FK_Data_8:
82-
case FK_PCRel_8:
8381
return 8;
8482
}
8583
}

llvm/lib/Target/VE/MCTargetDesc/VEELFObjectWriter.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ unsigned VEELFObjectWriter::getRelocType(const MCFixup &Fixup,
6161
reportError(Fixup.getLoc(), "Unsupported pc-relative fixup kind");
6262
return ELF::R_VE_NONE;
6363
case FK_Data_1:
64-
case FK_PCRel_1:
6564
reportError(Fixup.getLoc(),
6665
"1-byte pc-relative data relocation is not supported");
6766
return ELF::R_VE_NONE;
@@ -72,7 +71,6 @@ unsigned VEELFObjectWriter::getRelocType(const MCFixup &Fixup,
7271
case FK_Data_4:
7372
return ELF::R_VE_SREL32;
7473
case FK_Data_8:
75-
case FK_PCRel_8:
7674
reportError(Fixup.getLoc(),
7775
"8-byte pc-relative data relocation is not supported");
7876
return ELF::R_VE_NONE;

0 commit comments

Comments
 (0)