Add (dynamic) constants and types to editor
All threads resolved!
All threads resolved!
Compare changes
Files
4+ 1
− 1
@@ -25,7 +25,7 @@ pub fn dce(editor: &mut FunctionEditor) {
Adds support for editor to mutate global constants and types in a safe manner. This assumes no simultaneous calls to .edit
will occur across any editors. Type ID deduplication is done by a linear scan for now, although we could of course switch this in the future. I've tested this and confirmed it does work properly for return modification in interprocedural SROA.