1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-31 07:29:00 +00:00
6502bench/SourceGen
Andy McFadden d3670c48e8 Label rework, part 6
Correct handling of local variables.  We now correctly uniquify them
with regard to non-unique labels.  Because local vars can effectively
have global scope we mostly want to treat them as global, but they're
uniquified relative to other globals very late in the process, so we
can't just throw them in the symbol table and be done.  Fortunately
local variables exist in a separate namespace, so we just need to
uniquify the variables relative to the post-localization symbol table.
In other words, we take the symbol table, apply the label map, and
rename any variable that clashes.

This also fixes an older problem where we weren't masking the
leading '_' on variable labels when generating 64tass output.

The code list now makes non-unique labels obvious, but you can't tell
the difference between unique global and unique local.  What's more,
the default type value in Edit Label is now adjusted to Global for
unique locals that were auto-generated.  To make it a bit easier to
figure out what's what, the Info panel now has a "label type" line
that reports the type.

The 2023-non-unique-labels test had some additional tests added to
exercise conflicts with local variables.  The 2019-local-variables
test output changed slightly because the de-duplicated variable
naming convention was simplified.
2019-11-18 13:36:53 -08:00
..
AsmGen Label rework, part 6 2019-11-18 13:36:53 -08:00
Examples Rearrange the tutorial files 2019-10-30 09:49:11 -07:00
Properties Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Res Label rework, part 6 2019-11-18 13:36:53 -08:00
RuntimeData Label rework, part 1 2019-11-08 21:02:15 -08:00
Sandbox Label rework, part 2 2019-11-12 17:44:51 -08:00
SGTestData Label rework, part 6 2019-11-18 13:36:53 -08:00
Tests Label rework, part 6 2019-11-18 13:36:53 -08:00
Tools Minor updates 2019-10-25 18:16:09 -07:00
WpfGui Label rework, part 6 2019-11-18 13:36:53 -08:00
Anattrib.cs Correctly handle embedded instruction edge case 2019-10-19 17:28:45 -07:00
App.config Fix startup issues 2019-07-20 17:36:12 -07:00
App.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
App.xaml.cs Version 1.4.0 2019-10-30 15:50:09 -07:00
AppSettings.cs Finish removal of "disable label localizer" feature 2019-11-16 17:15:03 -08:00
AutoLabel.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
ChangeSet.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeAnalysis.cs Correctly handle embedded instruction edge case 2019-10-19 17:28:45 -07:00
DataAnalysis.cs Tweak "nearby" label finder 2019-10-29 18:12:22 -07:00
DefSymbol.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
DisasmProject.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
DisplayList.cs Label rework, part 2 2019-11-12 17:44:51 -08:00
DisplayListSelection.cs Add C64 encodings to instruction and data operand editors 2019-08-15 17:53:12 -07:00
Exporter.cs Init all FormattedParts strings fields to an empty string 2019-10-06 15:24:22 -07:00
ExternalFile.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatDescriptor.cs Fix junk alignment check 2019-10-23 13:25:50 -07:00
FormattedOperandCache.cs Add a string operand cache 2019-08-17 17:03:06 -07:00
HelpAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
LineListGen.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
LocalVariableLookup.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
LocalVariableTable.cs Improve the "info" panel 2019-10-22 21:27:49 -07:00
MainController.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
MessageList.cs Check for bank overrun 2019-11-05 13:29:51 -08:00
MultiLineComment.cs Tweak line folding code 2019-11-01 19:47:56 -07:00
NavStack.cs Tweak navigation 2019-10-10 11:57:36 -07:00
PlatformSymbols.cs Update comments, remove unused var 2019-10-27 21:29:44 -07:00
ProjectFile.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
ProjectProperties.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
PseudoOp.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
RuntimeDataAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
SourceGen.csproj Add an Applesoft to HTML converter 2019-10-23 17:49:59 -07:00
Symbol.cs Label rework, part 5 2019-11-17 16:05:51 -08:00
SymbolTable.cs Label rework, part 6 2019-11-18 13:36:53 -08:00
SystemDefaults.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
SystemDefs.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
UndoableChange.cs Add "Go to Last Change" feature 2019-11-01 19:11:48 -07:00
WeakSymbolRef.cs Add local variable uniquification 2019-08-31 14:19:50 -07:00
XrefSet.cs Instruction operand editor rework, part 2 2019-09-07 20:56:43 -07:00