mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add "addstrings" option (disabled by default) to select whether to automatically concatenate strings during constant folding.
This commit is contained in:
parent
6ea01c4242
commit
8f83e2f1ab
3 changed files with 14 additions and 7 deletions
|
@ -45,6 +45,9 @@ class optimizer(foldconst, renamer, deadcode):
|
|||
if 'optimize' not in options:
|
||||
return treesymtab
|
||||
|
||||
# Don't perform "a"+"b" -> "ab" unless explicitly requested.
|
||||
self.addstrings = 'addstrings' in options
|
||||
|
||||
self.foldtabs = 'foldtabs' in options
|
||||
|
||||
self.shrinknames = 'shrinknames' in options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue