llvm/msvc: IsStatement in codeview data is always false

b046b3e
Opened by Xan López at 2023-03-20 15:02:35

Each entry in the line table FilenameSegments has a 'IsStatement' member. LLVM hardcodes this to 'false', while in MSVC they seem to basically be always 'true'. Changing the default, at the very least, is trivial, but we don't know what this does. None of the Google employees I have asked know (they have mentioned DWARF has something similar which is also unused though), so I'm trying to ask someone at Microsoft.

(cc @michaelwoerister)

  1. Triage: no idea what the status of this ticket is.

    Steve Klabnik at 2020-01-09 14:28:29

  2. Visited during wg-debugging triage. The fStatement bool works as described above and msvc seems to unconditionally set it to true. I don't see any harm in matching behavior here, although it seems to be unused as Windows debuggers don't seem to care about this data at all. Triaging P-low just to be conformant.

    Wesley Wiser at 2023-03-20 15:02:35