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