Adding type records to TPI stream is too time consuming.
It is reported that linking chrome_child.dll took 5 minutes.
llvm-svn: 289330
bool HighEntropyVA = false;
// This is for debugging.
+ bool DebugPdb = false;
bool DumpPdb = false;
};
if (Args.hasArg(OPT_nosymtab))
Config->WriteSymtab = false;
Config->DumpPdb = Args.hasArg(OPT_dumppdb);
+ Config->DebugPdb = Args.hasArg(OPT_debugpdb);
// Create a list of input files. Files can be given as arguments
// for /defaultlib option.
def nosymtab : F<"nosymtab">;
// Flags for debugging
+def debugpdb : F<"debugpdb">;
def dumppdb : Joined<["/", "-"], "dumppdb">;
def lldmap : F<"lldmap">;
def lldmap_file : Joined<["/", "-"], "lldmap:">;
// Add an empty TPI stream.
auto &TpiBuilder = Builder.getTpiBuilder();
TpiBuilder.setVersionHeader(pdb::PdbTpiV80);
- addTypeInfo(Symtab, TpiBuilder);
+ if (Config->DebugPdb)
+ addTypeInfo(Symtab, TpiBuilder);
// Add an empty IPI stream.
auto &IpiBuilder = Builder.getIpiBuilder();
# RUN: yaml2obj %s > %t.obj
-# RUN: lld-link /debug /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib %t.obj
+# RUN: lld-link /debug /pdb:%t.pdb /dll /out:%t.dll /entry:main /nodefaultlib \
+# RUN: /debugpdb %t.obj
# RUN: llvm-pdbdump pdb2yaml -stream-metadata -stream-directory -pdb-stream \
# RUN: -dbi-stream -ipi-stream -tpi-stream %t.pdb | FileCheck %s