Lines Matching defs:Obj
91 void ObjDumper::printFileSummary(StringRef FileStr, object::ObjectFile &Obj,
98 W.printString("Format", Obj.getFileFormatName());
99 W.printString("Arch", Triple::getArchTypeName(Obj.getArch()));
101 std::string(formatv("{0}bit", 8 * Obj.getBytesInAddress())));
106 getSectionRefsByNameOrIndex(const object::ObjectFile &Obj,
119 SecIndex = Obj.isELF() ? 0 : 1;
120 for (object::SectionRef SecRef : Obj.sections()) {
121 StringRef SecName = unwrapOrError(Obj.getFileName(), SecRef.getName());
137 Obj.getFileName());
143 Obj.getFileName());
148 static void maybeDecompress(const object::ObjectFile &Obj,
152 SectionName, SectionContent, Obj.isLittleEndian(), Obj.is64Bit());
154 reportWarning(Decompressor.takeError(), Obj.getFileName());
156 reportWarning(std::move(Err), Obj.getFileName());
161 void ObjDumper::printSectionsAsString(const object::ObjectFile &Obj,
166 getSectionRefsByNameOrIndex(Obj, Sections)) {
167 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName());
172 unwrapOrError(Obj.getFileName(), Section.getContents());
174 maybeDecompress(Obj, SectionName, SectionContent, Out);
179 void ObjDumper::printSectionsAsHex(const object::ObjectFile &Obj,
184 getSectionRefsByNameOrIndex(Obj, Sections)) {
185 StringRef SectionName = unwrapOrError(Obj.getFileName(), Section.getName());
190 unwrapOrError(Obj.getFileName(), Section.getContents());
192 maybeDecompress(Obj, SectionName, SectionContent, Out);