Commit fddb89e
committed
[lldb/DWARF] Cache negative results of variable parsing
Use a `nullptr` map entry to mean "variable parse was attempted and it
failed" an the absence of an entry to mean "parsing hasn't been
attempted yet".
I ran into this because parsing of function-static variables was
generating a lot of errors (see #108806), but this seems like a good
idea in general.
In theory this should be NFC, except for possibly reducing some amount
of work.1 parent b7e51b4 commit fddb89e
1 file changed
+12
-14
lines changedLines changed: 12 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3377 | 3377 | | |
3378 | 3378 | | |
3379 | 3379 | | |
3380 | | - | |
3381 | | - | |
3382 | | - | |
3383 | | - | |
3384 | | - | |
3385 | | - | |
3386 | | - | |
3387 | | - | |
3388 | | - | |
3389 | | - | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
3390 | 3387 | | |
3391 | 3388 | | |
3392 | 3389 | | |
| |||
3799 | 3796 | | |
3800 | 3797 | | |
3801 | 3798 | | |
3802 | | - | |
3803 | | - | |
3804 | | - | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
3805 | 3803 | | |
3806 | 3804 | | |
3807 | 3805 | | |
| |||
3835 | 3833 | | |
3836 | 3834 | | |
3837 | 3835 | | |
3838 | | - | |
| 3836 | + | |
3839 | 3837 | | |
3840 | 3838 | | |
3841 | 3839 | | |
| |||
0 commit comments