@@ -765,43 +765,6 @@ def __str__(self) -> str:
765765 return "\n " .join (lines )
766766
767767
768- class MaybeNonReturningFunctionsHints (HintsEntry ):
769- """Addresses of functions that may or may not return (in hex).
770-
771- For now it is considered fully nondeterministic if the function
772- call returns or not.
773- """
774-
775- def __init__ (self , mnrfunctions : List [str ]) -> None :
776- HintsEntry .__init__ (self , "maybe-non-returning-functions" )
777- self ._mnrfunctions = mnrfunctions
778-
779- @property
780- def mnrfunctions (self ) -> List [str ]:
781- return self ._mnrfunctions
782-
783- def update (self , d : List [str ]) -> None :
784- for faddr in d :
785- if faddr not in self ._mnrfunctions :
786- self ._mnrfunctions .append (faddr )
787-
788- def to_xml (self , node : ET .Element ) -> None :
789- xmnrfunctions = ET .Element (self .name )
790- node .append (xmnrfunctions )
791- for faddr in self .mnrfunctions :
792- xmnr = ET .Element ("mnr" )
793- xmnr .set ("a" , faddr )
794- xmnrfunctions .append (xmnr )
795-
796- def __str__ (self ) -> str :
797- lines : List [str ] = []
798- lines .append ("Maybe-non-returning functions" )
799- lines .append ("-----------------------" )
800- lines .append (" [" + ", " .join (sorted (self .mnrfunctions )))
801- return "\n " .join (lines )
802-
803-
804-
805768class SectionHeadersHints (HintsEntry ):
806769 """Dictionary of section header information."""
807770
@@ -1333,14 +1296,6 @@ def add_hints(self, hints: Dict[str, Any]) -> None:
13331296 else :
13341297 self .userdata [tag ] = NonReturningFunctionsHints (nrfunctions )
13351298
1336- if "maybe-non-returning-functions" in hints :
1337- tag = "maybe-non-returning-functions"
1338- mnrfunctions : List [str ] = hints [tag ]
1339- if tag in self .userdata :
1340- self .userdata [tag ].update (mnrfunctions )
1341- else :
1342- self .userdata [tag ] = MaybeNonReturningFunctionsHints (mnrfunctions )
1343-
13441299 if "section-headers" in hints :
13451300 tag = "section-headers"
13461301 sectionheaders : Dict [str , Dict [str , str ]] = hints [tag ]
0 commit comments