mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 03:11:27 +00:00
[LLD][ELF] - Apply clang-format to InputSections.cpp. NFC.
llvm-svn: 338498
This commit is contained in:
parent
a4211551f1
commit
676dc17db0
@ -221,8 +221,8 @@ template <class ELFT>
|
||||
Defined *InputSectionBase::getEnclosingFunction(uint64_t Offset) {
|
||||
for (Symbol *B : File->getSymbols())
|
||||
if (Defined *D = dyn_cast<Defined>(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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user