[ELF] initializeSections: move SHT_LLVM_CALL_GRAPH_PROFILE check into SHF_EXCLUDE...
authorFangrui Song <i@maskray.me>
Mon, 13 Dec 2021 04:05:21 +0000 (20:05 -0800)
committerFangrui Song <i@maskray.me>
Mon, 13 Dec 2021 04:05:21 +0000 (20:05 -0800)
commit1eaa9b4374f5559a2332b056ae66ddf78ad8bfff
tree6b10e15e5b845f0b0330633b014775f7d715bdf1
parentd29766bb485a4b69b821f7a30acec5016ff6112c
[ELF] initializeSections: move SHT_LLVM_CALL_GRAPH_PROFILE check into SHF_EXCLUDE && !relocatable. NFC

Avoid a comparison in the majority of cases.
lld/ELF/InputFiles.cpp