forked from OSchip/llvm-project
[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:
parent
ab1f6ffa56
commit
dc2c6cf274
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue