mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Add API to remove a version requirement from a symbol
This commit is contained in:
@@ -76,6 +76,16 @@ void create<SymbolVersion>(nb::module_& m) {
|
||||
)delim"_doc,
|
||||
nb::rv_policy::reference_internal)
|
||||
|
||||
.def("drop_version", &SymbolVersion::drop_version,
|
||||
"Drop the versioning requirement and replace the value (local/global)"_doc,
|
||||
"value"_a)
|
||||
|
||||
.def("as_global", &SymbolVersion::as_global,
|
||||
"Redefine this version as global by dropping its auxiliary version"_doc)
|
||||
|
||||
.def("as_local", &SymbolVersion::as_local,
|
||||
"Redefine this version as local by dropping its auxiliary version"_doc)
|
||||
|
||||
LIEF_DEFAULT_STR(SymbolVersion);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user