summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-10-06 19:01:32 +0000
committerDavide Italiano <davide@freebsd.org>2015-10-06 19:01:32 +0000
commitef4be6b4fedc87a08de9b95f912c3048960a43d6 (patch)
tree387613625386a3221eaa6d003e3de3d301a37db9
parent600a91580f34589283e21b5947f7af28a019d31b (diff)
downloadbcm5719-llvm-ef4be6b4fedc87a08de9b95f912c3048960a43d6.tar.gz
bcm5719-llvm-ef4be6b4fedc87a08de9b95f912c3048960a43d6.zip
[ELF2/AArch64] Function names should start with a verb (lower case).
Pointed out by: Rafael Espindola. llvm-svn: 249443
-rw-r--r--lld/ELF/Target.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 61e5c0e8d60..ae5fe743724 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -271,7 +271,7 @@ bool AArch64TargetInfo::relocNeedsPlt(uint32_t Type,
return false;
}
-static void AArch64UpdateAdr(uint8_t *L, uint64_t Imm) {
+static void updateAArch64Adr(uint8_t *L, uint64_t Imm) {
uint32_t ImmLo = (Imm & 0x3) << 29;
uint32_t ImmHi = ((Imm & 0x1FFFFC) >> 2) << 5;
uint64_t Mask = (0x3 << 29) | (0x7FFFF << 5);
@@ -281,7 +281,7 @@ static void AArch64UpdateAdr(uint8_t *L, uint64_t Imm) {
// Page(Expr) is the page address of the expression Expr, defined
// as (Expr & ~0xFFF). (This applies even if the machine page size
// supported by the platform has a different value.)
-static uint64_t AArch64GetPage(uint64_t Expr) {
+static uint64_t getAArch64Page(uint64_t Expr) {
return Expr & (~static_cast<uint64_t>(0xFFF));
}
@@ -314,15 +314,15 @@ static void handle_ADR_PREL_LO21(uint8_t *L, uint64_t S, int64_t A,
uint64_t X = S + A - P;
if (!isInt<21>(X))
error("Relocation R_AARCH64_ADR_PREL_LO21 out of range");
- AArch64UpdateAdr(L, X & 0x1FFFFF);
+ updateAArch64Adr(L, X & 0x1FFFFF);
}
static void handle_ADR_PREL_PG_HI21(uint8_t *L, uint64_t S, int64_t A,
uint64_t P) {
- uint64_t X = AArch64GetPage(S + A) - AArch64GetPage(P);
+ uint64_t X = getAArch64Page(S + A) - getAArch64Page(P);
if (!isInt<33>(X))
error("Relocation R_AARCH64_ADR_PREL_PG_HI21 out of range");
- AArch64UpdateAdr(L, (X >> 12) & 0x1FFFFF); // X[32:12]
+ updateAArch64Adr(L, (X >> 12) & 0x1FFFFF); // X[32:12]
}
void AArch64TargetInfo::relocateOne(uint8_t *Buf, const void *RelP,
OpenPOWER on IntegriCloud