[lld][MachO] Adjust isCodeSection signature

This diff changes the type of the argument of isCodeSection to const InputSection *.
NFC.

Test plan: make check-lld-macho

Differential revision: https://reviews.llvm.org/D102664
This commit is contained in:
Alexander Shaposhnikov 2021-05-17 22:09:06 -07:00
parent ab1f6ffa56
commit dc2c6cf274
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ void InputSection::writeTo(uint8_t *buf) {
}
}
bool macho::isCodeSection(InputSection *isec) {
bool macho::isCodeSection(const InputSection *isec) {
uint32_t type = isec->flags & SECTION_TYPE;
if (type != S_REGULAR && type != S_COALESCED)
return false;

View File

@ -87,7 +87,7 @@ inline bool isDebugSection(uint32_t flags) {
llvm::MachO::S_ATTR_DEBUG;
}
bool isCodeSection(InputSection *);
bool isCodeSection(const InputSection *);
extern std::vector<InputSection *> inputSections;