From 24de7671136e87a1bad0fc6eb68a26c9930090ac Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 9 Jun 2016 20:39:01 +0000 Subject: [PATCH] Rename warnDynRel. It produces an error, so that was a bad name. llvm-svn: 272304 --- lld/ELF/Target.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 3d490516c4e8..199e87364d24 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -75,7 +75,7 @@ template static void checkAlignment(uint64_t V, uint32_t Type) { error("improper alignment for relocation " + getRelName(Type)); } -static void warnDynRel(uint32_t Type) { +static void errorDynRel(uint32_t Type) { error("relocation " + getRelName(Type) + " cannot be used when making a shared object; recompile with -fPIC."); } @@ -1199,7 +1199,7 @@ uint32_t AArch64TargetInfo::getDynRel(uint32_t Type) const { if (Type == R_AARCH64_ABS32 || Type == R_AARCH64_ABS64) return Type; // Keep it going with a dummy value so that we can find more reloc errors. - warnDynRel(Type); + errorDynRel(Type); return R_AARCH64_ABS32; } @@ -1489,7 +1489,7 @@ uint32_t ARMTargetInfo::getDynRel(uint32_t Type) const { if (Type == R_ARM_ABS32) return Type; // Keep it going with a dummy value so that we can find more reloc errors. - warnDynRel(Type); + errorDynRel(Type); return R_ARM_ABS32; } @@ -1662,7 +1662,7 @@ uint32_t MipsTargetInfo::getDynRel(uint32_t Type) const { if (Type == R_MIPS_32 || Type == R_MIPS_64) return RelativeRel; // Keep it going with a dummy value so that we can find more reloc errors. - warnDynRel(Type); + errorDynRel(Type); return R_MIPS_32; }