Lines Matching defs:isec

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