[lld] r272304 - Rename warnDynRel.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 13:39:02 PDT 2016
Author: rafael
Date: Thu Jun 9 15:39:01 2016
New Revision: 272304
URL: http://llvm.org/viewvc/llvm-project?rev=272304&view=rev
Log:
Rename warnDynRel.
It produces an error, so that was a bad name.
Modified:
lld/trunk/ELF/Target.cpp
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=272304&r1=272303&r2=272304&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Jun 9 15:39:01 2016
@@ -75,7 +75,7 @@ template <unsigned N> static void checkA
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(ui
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
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<ELFT>::getDynRel
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;
}
More information about the llvm-commits
mailing list