Lines Matching defs:Name
58 // sections and symbols can be referenced by name instead of by index.
63 /// \returns true if name is already present in the map.
64 bool addName(StringRef Name, unsigned i) {
65 return !Map.insert(std::make_pair(Name, (int)i)).second;
67 /// \returns true if name is not present in the map
68 bool lookup(StringRef Name, unsigned &Idx) const {
69 StringMap<int>::const_iterator I = Map.find(Name);
123 void initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
190 DotShStrtab.add(Sec->Name);
195 SHeader.sh_name = DotShStrtab.getOffset(Sec->Name);
205 << "' at YAML section '" << Sec->Name << "'.\n";
221 << "' at YAML section '" << S->Name << "'.\n";
232 << "' at YAML section '" << S->Name << "'.\n";
267 DotStrtab.add(Sym.Name);
269 DotStrtab.add(Sym.Name);
271 DotStrtab.add(Sym.Name);
284 void ELFState<ELFT>::initStrtabSectionHeader(Elf_Shdr &SHeader, StringRef Name,
288 SHeader.sh_name = DotShStrtab.getOffset(Name);
302 if (!Sym.Name.empty())
303 Symbol.st_name = DotStrtab.getOffset(Sym.Name);
309 << "' by YAML symbol " << Sym.Name << ".\n";
408 << Section.Name << "\n";
423 StringRef Name = Doc.Sections[i]->Name;
424 if (Name.empty())
427 if (SN2I.addName(Name, i + 1)) {
428 errs() << "error: Repeated section name: '" << Name
442 if (Sym.Name.empty())
444 if (SymN2I.addName(Sym.Name, StartIndex)) {
445 errs() << "error: Repeated symbol name: '" << Sym.Name << "'.\n";