• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-readobj/

Lines Matching refs:StringRef

110   StringRef getSymbolName(uint32_t Index);
128 void printCodeViewSymbolSection(StringRef SectionName, const SectionRef &Section);
129 void printCodeViewTypeSection(StringRef SectionName, const SectionRef &Section);
130 StringRef getTypeName(TypeIndex Ty);
131 StringRef getFileNameForFileOffset(uint32_t FileOffset);
132 void printFileNameForOffset(StringRef Label, uint32_t FileOffset);
133 void printTypeIndex(StringRef FieldName, TypeIndex TI) {
138 void printCodeViewSymbolsSubsection(StringRef Subsection,
140 StringRef SectionContents);
142 void printCodeViewFileChecksums(StringRef Subsection);
144 void printCodeViewInlineeLines(StringRef Subsection);
146 void printRelocatedField(StringRef Label, const coff_section *Sec,
148 StringRef *RelocSym = nullptr);
152 StringRef Level);
156 StringRef Level);
158 void printBinaryBlockWithRelocs(StringRef Label, const SectionRef &Sec,
159 StringRef SectionContents, StringRef Block);
169 uint64_t Offset, StringRef &Name);
171 StringRef SectionContents,
172 const void *RelocPtr, StringRef &Name);
200 const COFFObjectFile *Obj, StringRef SectionContents)
214 void printRelocatedField(StringRef Label, uint32_t RelocOffset,
215 uint32_t Offset, StringRef *RelocSym) override {
219 void printBinaryBlockWithRelocs(StringRef Label,
221 StringRef SBlock(reinterpret_cast<const char *>(Block.data()),
227 StringRef getFileNameForFileOffset(uint32_t FileOffset) override {
239 StringRef SectionContents;
284 StringRef &Name) {
288 Expected<StringRef> NameOrErr = Symbol.getName();
298 StringRef SectionContents,
300 StringRef &Name) {
309 void COFFDumper::printRelocatedField(StringRef Label, const coff_section *Sec,
311 StringRef *RelocSym) {
312 StringRef SymStorage;
313 StringRef &Symbol = RelocSym ? *RelocSym : SymStorage;
320 void COFFDumper::printBinaryBlockWithRelocs(StringRef Label,
322 StringRef SectionContents,
323 StringRef Block) {
654 W.printString("Magic", StringRef(DH->Magic, sizeof(DH->Magic)));
742 StringRef PDBFileName;
915 StringRef SectionName = unwrapOrError(Obj->getFileName(), S.getName());
922 StringRef SectionName = unwrapOrError(Obj->getFileName(), S.getName());
940 StringRef Contents;
964 void COFFDumper::printCodeViewSymbolSection(StringRef SectionName,
966 StringRef SectionContents =
968 StringRef Data = SectionContents;
970 SmallVector<StringRef, 10> FunctionNames;
971 StringMap<StringRef> FunctionLineTables;
1012 StringRef Contents = Data.substr(0, SubSectionSize);
1056 StringRef LinkageName;
1081 StringRef LinkageName;
1091 StringRef FrameFunc = unwrapOrError(
1113 if (EqOrEnd == StringRef::npos)
1117 StringRef Stmt = FrameFunc.substr(0, EqOrEnd);
1136 StringRef Name = FunctionNames[I];
1165 W.printString("StepInto", StringRef("Always"));
1167 W.printString("StepInto", StringRef("Never"));
1182 void COFFDumper::printCodeViewSymbolsSubsection(StringRef Subsection,
1184 StringRef SectionContents) {
1206 void COFFDumper::printCodeViewFileChecksums(StringRef Subsection) {
1215 StringRef Filename = unwrapOrError(
1226 void COFFDumper::printCodeViewInlineeLines(StringRef Subsection) {
1248 StringRef COFFDumper::getFileNameForFileOffset(uint32_t FileOffset) {
1265 void COFFDumper::printFileNameForOffset(StringRef Label, uint32_t FileOffset) {
1275 StringRef SectionName = unwrapOrError(Obj->getFileName(), S.getName());
1277 StringRef Data = unwrapOrError(Obj->getFileName(), S.getContents());
1312 void COFFDumper::printCodeViewTypeSection(StringRef SectionName,
1317 StringRef Data = unwrapOrError(Obj->getFileName(), Section.getContents());
1346 StringRef Name = unwrapOrError(Obj->getFileName(), Sec.getName());
1381 StringRef Data = unwrapOrError(Obj->getFileName(), Sec.getContents());
1393 StringRef Name = unwrapOrError(Obj->getFileName(), Section.getName());
1418 StringRef SymbolName;
1423 Expected<StringRef> SymbolNameOrErr = Symbol->getName();
1456 static Expected<StringRef>
1462 return StringRef("IMAGE_SYM_DEBUG");
1464 return StringRef("IMAGE_SYM_ABSOLUTE");
1466 return StringRef("IMAGE_SYM_UNDEFINED");
1467 return StringRef("");
1485 StringRef SymbolName;
1486 if (Expected<StringRef> SymNameOrErr = Obj->getSymbolName(Symbol))
1489 StringRef SectionName;
1490 if (Expected<StringRef> SecNameOrErr =
1532 StringRef Name(FileName, Symbol.getNumberOfAuxSymbols() *
1534 W.printString("FileName", Name.rtrim(StringRef("\0", 1)));
1556 Expected<StringRef> AssocName = getSectionName(Obj, AuxNumber, *Assoc);
1612 using LibsTy = std::vector<StringRef>;
1616 StringRef Name;
1631 StringRef Sym;
1647 StringRef Sym;
1667 StringRef Name;
1690 StringRef Name;
1711 StringRef Name;
1729 StringRef Name = unwrapOrError(Obj->getFileName(), Section.getName());
1733 StringRef Contents =
1770 StringRef Name = unwrapOrError(Obj->getFileName(), S.getName());
1774 StringRef Ref = unwrapOrError(Obj->getFileName(), S.getContents());
1797 StringRef Level) {
1803 StringRef NextLevel;
1820 StringRef Level) {
1829 StringRef Name;
1857 Name = StringRef(IDStr);
1861 StringRef NextLevel;
1885 StringRef Contents =
1895 StringRef Name;
1896 if (Expected<StringRef> NameOrErr = Sec.getName())
1910 StringRef StackMapContents =
1926 StringRef Name;
1927 if (Expected<StringRef> NameOrErr = Sec.getName())
1941 StringRef AddrsigContents =
1964 StringRef Name = unwrapOrError(Obj->getFileName(), Sec.getName());
1974 StringRef CGProfileContents =
1996 StringRef COFFDumper::getSymbolName(uint32_t Index) {
2001 Expected<StringRef> SymName = Obj->getSymbolName(*Sym);