From: George Rimar Date: Wed, 1 Aug 2018 08:11:54 +0000 (+0000) Subject: [LLD][ELF] - Apply clang-format to InputSections.cpp. NFC. X-Git-Tag: llvmorg-7.0.0-rc1~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=676dc17db09090782ad17fadabc765264f1ca435;p=platform%2Fupstream%2Fllvm.git [LLD][ELF] - Apply clang-format to InputSections.cpp. NFC. llvm-svn: 338498 --- diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index a4359c4..54fb57c 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -221,8 +221,8 @@ template Defined *InputSectionBase::getEnclosingFunction(uint64_t Offset) { for (Symbol *B : File->getSymbols()) if (Defined *D = dyn_cast(B)) - if (D->Section == this && D->Type == STT_FUNC && - D->Value <= Offset && Offset < D->Value + D->Size) + if (D->Section == this && D->Type == STT_FUNC && D->Value <= Offset && + Offset < D->Value + D->Size) return D; return nullptr; } @@ -671,7 +671,7 @@ static uint64_t getRelocTargetVA(const InputFile *File, RelType Type, int64_t A, case R_TLSLD_GOT_FROM_END: return InX::Got->getTlsIndexOff() + A - InX::Got->getSize(); case R_TLSLD_GOT: - return InX::Got->getTlsIndexOff() + A; + return InX::Got->getTlsIndexOff() + A; case R_TLSLD_PC: return InX::Got->getTlsIndexVA() + A - P; }