Lines Matching refs:isec
46 if (auto *isec = dyn_cast<ConcatInputSection>(inputSection)) { in addInputSection() local
47 if (isec->isCoalescedWeak()) in addInputSection()
50 ObjCMethListSection::isMethodList(isec)) { in addInputSection()
53 in.objcMethList->addInput(isec); in addInputSection()
54 isec->parent = in.objcMethList; in addInputSection()
58 sectionType(isec->getFlags()) == S_MOD_INIT_FUNC_POINTERS) { in addInputSection()
59 in.initOffsets->addInput(isec); in addInputSection()
62 isec->outSecOff = inputSectionsOrder++; in addInputSection()
63 auto *osec = ConcatOutputSection::getOrCreateForInput(isec); in addInputSection()
64 isec->parent = osec; in addInputSection()
65 inputSections.push_back(isec); in addInputSection()
66 } else if (auto *isec = dyn_cast<CStringInputSection>(inputSection)) { in addInputSection() local
67 if (isec->getName() == section_names::objcMethname) { in addInputSection()
70 in.objcMethnameSection->addInput(isec); in addInputSection()
74 in.cStringSection->addInput(isec); in addInputSection()
76 } else if (auto *isec = dyn_cast<WordLiteralInputSection>(inputSection)) { in addInputSection() local
79 in.wordLiteralSection->addInput(isec); in addInputSection()
124 if (subsec.isec == this) { in getLocation()
145 if (subsec.isec == this) { in getSourceLocation()
281 auto isec = make<ConcatInputSection>(section, data, align); in makeSyntheticInputSection() local
284 isec->live = true; in makeSyntheticInputSection()
285 section.subsections.push_back({0, isec}); in makeSyntheticInputSection()
286 return isec; in makeSyntheticInputSection()
368 bool macho::isCodeSection(const InputSection *isec) { in isCodeSection() argument
369 uint32_t type = sectionType(isec->getFlags()); in isCodeSection()
373 uint32_t attr = isec->getFlags() & SECTION_ATTRIBUTES_USR; in isCodeSection()
377 if (isec->getSegName() == segment_names::text) in isCodeSection()
378 return StringSwitch<bool>(isec->getName()) in isCodeSection()
385 bool macho::isCfStringSection(const InputSection *isec) { in isCfStringSection() argument
386 return isec->getName() == section_names::cfString && in isCfStringSection()
387 isec->getSegName() == segment_names::data; in isCfStringSection()
390 bool macho::isClassRefsSection(const InputSection *isec) { in isClassRefsSection() argument
391 return isec->getName() == section_names::objcClassRefs && in isClassRefsSection()
392 isec->getSegName() == segment_names::data; in isClassRefsSection()
395 bool macho::isSelRefsSection(const InputSection *isec) { in isSelRefsSection() argument
396 return isec->getName() == section_names::objcSelrefs && in isSelRefsSection()
397 isec->getSegName() == segment_names::data; in isSelRefsSection()
400 bool macho::isEhFrameSection(const InputSection *isec) { in isEhFrameSection() argument
401 return isec->getName() == section_names::ehFrame && in isEhFrameSection()
402 isec->getSegName() == segment_names::text; in isEhFrameSection()
405 bool macho::isGccExceptTabSection(const InputSection *isec) { in isGccExceptTabSection() argument
406 return isec->getName() == section_names::gccExceptTab && in isGccExceptTabSection()
407 isec->getSegName() == segment_names::text; in isGccExceptTabSection()
410 std::string lld::toString(const InputSection *isec) { in toString() argument
411 return (toString(isec->getFile()) + ":(" + isec->getName() + ")").str(); in toString()