Closed jrmuizel closed 5 years ago
What need does this address? I'm used to starting at well-known stream numbers and following data structures into other numbered streams; indexing streams by name makes me nervous.
This is used for looking up the '/names' stream which is where the file names for the line information is stored. It corresponds to https://github.com/llvm-mirror/llvm/blob/205cff101830ef0cb2510ec3cce5e04759257acc/lib/DebugInfo/PDB/Native/PDBFile.cpp#L373
I'm not entirely sure why (as with most things about the PDB format) but some streams have well-known numbers, other streams have arbitrary stream numbers located inside well-known streams, and yet other streams have well-known names whose stream numbers must be looked up in the names map contained within the PDB information stream.
Fair enough. Thanks!
Not sure if 'named_stream' is the best name. Open to suggestions.