Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:Name

115 getELFKindForNamedSection(StringRef Name, SectionKind K) {
122 if (Name.empty() || Name[0] != '.') return K;
125 if (Name == ".bss" ||
126 Name.startswith(".bss.") ||
127 Name.startswith(".gnu.linkonce.b.") ||
128 Name.startswith(".llvm.linkonce.b.") ||
129 Name == ".sbss" ||
130 Name.startswith(".sbss.") ||
131 Name.startswith(".gnu.linkonce.sb.") ||
132 Name.startswith(".llvm.linkonce.sb."))
135 if (Name == ".tdata" ||
136 Name.startswith(".tdata.") ||
137 Name.startswith(".gnu.linkonce.td.") ||
138 Name.startswith(".llvm.linkonce.td."))
141 if (Name == ".tbss" ||
142 Name.startswith(".tbss.") ||
143 Name.startswith(".gnu.linkonce.tb.") ||
144 Name.startswith(".llvm.linkonce.tb."))
151 static unsigned getELFSectionType(StringRef Name, SectionKind K) {
153 if (Name == ".init_array")
156 if (Name == ".fini_array")
159 if (Name == ".preinit_array")
209 // Infer section flags from the section name if we can.
223 /// Return the section prefix name used by options FunctionsSections and
281 SmallString<128> Name;
290 Name = SizeSpec + utostr(Align);
292 Name = ".rodata.cst";
293 Name += utostr(EntrySize);
295 Name = getSectionPrefixForGlobal(Kind);
299 Name.push_back('.');
300 TM.getNameWithPrefix(Name, GV, Mang, true);
307 return Ctx.getELFSection(Name, getELFSectionType(Name, Kind), Flags,
377 std::string Name;
388 Name = ".init_array";
391 Name = ".fini_array";
394 Name += '.';
395 Name += utostr(Priority);
401 Name = ".ctors";
403 Name = ".dtors";
405 Name += '.';
406 Name += utostr(65535 - Priority);
411 return Ctx.getELFSection(Name, Type, Flags, 0, COMDAT);
447 /// getDepLibFromLinkerOpt - Extract the dependent library name from a linker
756 SmallString<128> Name;
758 Name += DL->getPrivateGlobalPrefix();
759 Name += Sym->getName();
760 Name += Suffix;
761 MCSymbol *Stub = Ctx.GetOrCreateSymbol(Name);
869 StringRef Name = GV->getSection();
887 return getContext().getCOFFSection(Name,
919 const char *Name = getCOFFSectionNameForUniqueGlobal(Kind);
935 return getContext().getCOFFSection(Name, Characteristics, Kind,
940 return getContext().getCOFFSection(Name, Characteristics, Kind, TmpData,
991 const char *Name = getCOFFSectionNameForUniqueGlobal(Kind);
995 return getContext().getCOFFSection(Name, Characteristics, Kind, COMDATSymName,