diff --git a/Tools/autotest/param_metadata/ednemit.py b/Tools/autotest/param_metadata/ednemit.py index d024e13a5dbae..2989381c839ef 100644 --- a/Tools/autotest/param_metadata/ednemit.py +++ b/Tools/autotest/param_metadata/ednemit.py @@ -49,6 +49,9 @@ def emit(self, g): # remove any keys we don't really care to share for key in self.remove_keys: output_dict.pop(key, None) + for key in list(output_dict.keys()): + if not self.should_emit_field(param, key): + output_dict.pop(key, None) # rearrange bitmasks to be a vector with nil's if the bit doesn't have meaning if "bitmask" in output_dict: diff --git a/Tools/autotest/param_metadata/emit.py b/Tools/autotest/param_metadata/emit.py index 6bffd455d4816..daad4bbfc5a49 100644 --- a/Tools/autotest/param_metadata/emit.py +++ b/Tools/autotest/param_metadata/emit.py @@ -19,3 +19,6 @@ def start_libraries(self): def emit(self, g): pass + + def should_emit_field(self, param, field): + return field not in ['Legacy'] diff --git a/Tools/autotest/param_metadata/htmlemit.py b/Tools/autotest/param_metadata/htmlemit.py index 201a13ef9a85b..1f3a26bb290d4 100644 --- a/Tools/autotest/param_metadata/htmlemit.py +++ b/Tools/autotest/param_metadata/htmlemit.py @@ -65,6 +65,8 @@ def emit(self, g): t += "