Lines Matching refs:Obj

91 void ObjDumper::printFileSummary(StringRef FileStr, object::ObjectFile &Obj,  in printFileSummary()  argument
96 W.printString("Format", Obj.getFileFormatName()); in printFileSummary()
97 W.printString("Arch", Triple::getArchTypeName(Obj.getArch())); in printFileSummary()
99 std::string(formatv("{0}bit", 8 * Obj.getBytesInAddress()))); in printFileSummary()
104 getSectionRefsByNameOrIndex(const object::ObjectFile &Obj, in getSectionRefsByNameOrIndex() argument
117 SecIndex = Obj.isELF() ? 0 : 1; in getSectionRefsByNameOrIndex()
118 for (object::SectionRef SecRef : Obj.sections()) { in getSectionRefsByNameOrIndex()
119 StringRef SecName = unwrapOrError(Obj.getFileName(), SecRef.getName()); in getSectionRefsByNameOrIndex()
135 Obj.getFileName()); in getSectionRefsByNameOrIndex()
141 Obj.getFileName()); in getSectionRefsByNameOrIndex()
146 static void maybeDecompress(const object::ObjectFile &Obj, in maybeDecompress() argument
150 SectionName, SectionContent, Obj.isLittleEndian(), Obj.is64Bit()); in maybeDecompress()
152 reportWarning(Decompressor.takeError(), Obj.getFileName()); in maybeDecompress()
154 reportWarning(std::move(Err), Obj.getFileName()); in maybeDecompress()
159 void ObjDumper::printSectionsAsString(const object::ObjectFile &Obj, in printSectionsAsString() argument
165 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsString()
166 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsString()
174 unwrapOrError(Obj.getFileName(), Section.getContents()); in printSectionsAsString()
176 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsString()
181 void ObjDumper::printSectionsAsHex(const object::ObjectFile &Obj, in printSectionsAsHex() argument
187 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsHex()
188 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName()); in printSectionsAsHex()
196 unwrapOrError(Obj.getFileName(), Section.getContents()); in printSectionsAsHex()
198 maybeDecompress(Obj, SectionName, SectionContent, Out); in printSectionsAsHex()