mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-15 15:33:56 +00:00
Simplify. NFC.
llvm-svn: 352242
This commit is contained in:
parent
a34bcbf335
commit
e14e46b3f1
@ -401,9 +401,8 @@ void ObjFile<ELFT>::initializeSections(
|
||||
const Elf_Shdr &Sec = ObjSections[I];
|
||||
|
||||
if (Sec.sh_type == ELF::SHT_LLVM_CALL_GRAPH_PROFILE)
|
||||
CGProfile = check(
|
||||
this->getObj().template getSectionContentsAsArray<Elf_CGProfile>(
|
||||
&Sec));
|
||||
CGProfile =
|
||||
check(Obj.template getSectionContentsAsArray<Elf_CGProfile>(&Sec));
|
||||
|
||||
// SHF_EXCLUDE'ed sections are discarded by the linker. However,
|
||||
// if -r is given, we'll let the final link discard such sections.
|
||||
@ -453,7 +452,6 @@ void ObjFile<ELFT>::initializeSections(
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Otherwise, discard group members.
|
||||
for (uint32_t SecIndex : Entries.slice(1)) {
|
||||
if (SecIndex >= Size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user