Lines Matching defs:File
63 DumpOutputStyle::DumpOutputStyle(InputFile &File)
64 : File(File), P(2, false, outs()) {
66 RefTracker.reset(new TypeReferenceTracker(File));
71 PDBFile &DumpOutputStyle::getPdb() { return File.pdb(); }
72 object::COFFObjectFile &DumpOutputStyle::getObj() { return File.obj(); }
166 if (File.isObj()) {
201 auto EC = File.isPdb() ? dumpModuleSymsForPdb() : dumpModuleSymsForObj();
240 if (File.isObj()) {
379 if (File.isObj()) {
412 static Expected<ModuleDebugStreamRef> getModuleDebugStream(PDBFile &File,
416 auto &Dbi = Err(File.getPDBDbiStream());
425 auto ModStreamData = File.createIndexedStream(ModiStream);
437 iterateOneModule(InputFile &File, const Optional<PrintScope> &HeaderScope,
479 InputFile &File, const Optional<PrintScope> &HeaderScope,
483 iterateSymbolGroups(File, HeaderScope,
501 loadSectionHeaders(PDBFile &File, DbgHeaderType Type) {
502 if (!File.hasPDBDbiStream())
507 auto &Dbi = cantFail(File.getPDBDbiStream());
515 auto Stream = File.createIndexedStream(SI);
532 static std::vector<std::string> getSectionNames(PDBFile &File) {
533 auto ExpectedHeaders = loadSectionHeaders(File, DbgHeaderType::SectionHdr);
582 if (File.isObj()) {
599 File, PrintScope{P, 11}, [&](uint32_t Modi, const SymbolGroup &Strings) {
623 if (File.isObj()) {
635 iterateSymbolGroups(File, PrintScope{P, 11},
650 if (File.isPdb() && !getPdb().hasPDBDbiStream()) {
661 if (File.isPdb())
664 iterateSymbolGroups(File, Scope, [&](uint32_t Modi, const SymbolGroup &SG) {
670 auto Modules = cantFail(File.pdb().getPDBDbiStream()).modules();
705 opts::dump::DumpTypeStats ? File.types() : File.ids();
768 if (File.isPdb() && !getPdb().hasPDBGlobalsStream()) {
777 auto &TpiTypes = File.types();
818 if (File.isPdb()) {
829 for (const auto &Sec : File.symbol_groups()) {
940 if (File.isPdb() && !getPdb().hasPDBDbiStream()) {
948 File, PrintScope{P, 4},
981 if (File.isPdb() && !getPdb().hasPDBDbiStream()) {
987 File, PrintScope{P, 2},
990 P.formatLine("{0,+8} | {1,+5} | {2}", "Inlinee", "Line", "Source File");
1009 if (File.isPdb() && !getPdb().hasPDBDbiStream()) {
1015 File, PrintScope{P, 2},
1050 if (File.isPdb() && !getPdb().hasPDBDbiStream()) {
1056 File, PrintScope{P, 2},
1083 Error DumpOutputStyle::dumpOldFpo(PDBFile &File) {
1087 auto &Dbi = Err(File.getPDBDbiStream());
1110 Error DumpOutputStyle::dumpNewFpo(PDBFile &File) {
1114 auto &Dbi = Err(File.getPDBDbiStream());
1130 auto &StringTable = Err(File.getStringTable());
1145 if (!File.isPdb()) {
1150 PDBFile &File = getPdb();
1151 if (!File.hasPDBDbiStream()) {
1156 if (auto EC = dumpOldFpo(File))
1158 if (auto EC = dumpNewFpo(File))
1236 File, PrintScope{P, 4},
1258 if (File.isObj()) {
1264 ExitOnError Err("Invalid PDB File: ");
1266 auto &IS = Err(File.pdb().getPDBInfoStream());
1273 File.pdb().getStreamByteSize(Entry.getValue()));
1282 if (File.isPdb())
1430 assert(!File.isObj());
1464 auto &Types = (StreamIdx == StreamTPI) ? File.types() : File.ids();
1531 auto &Types = File.types();
1544 File, PrintScope{P, 2},
1565 if (File.isPdb() && !getPdb().hasPDBDbiStream()) {
1573 auto &Ids = File.ids();
1574 auto &Types = File.types();
1577 File, PrintScope{P, 2}, [&](uint32_t I, const SymbolGroup &Strings) {
1578 auto ExpectedModS = getModuleDebugStream(File.pdb(), I);
1612 size_t TotalRecs = File.types().size();
1616 auto &Types = File.types();
1618 CVType Type = File.types().getType(*TI);
1637 if (File.isObj()) {
1650 auto &Types = File.types();
1651 auto &Ids = File.ids();
1671 if (File.isObj()) {
1690 auto &Types = File.types();
1691 auto &Ids = File.ids();
1725 if (File.isObj()) {
1786 auto &Types = File.types();
1787 auto &Ids = File.ids();
1865 if (File.isObj()) {
1915 if (File.isObj()) {
1960 if (File.isObj()) {