Add API to remove a version requirement from a symbol

This commit is contained in:
Romain Thomas
2025-06-29 17:34:58 +02:00
parent 22d994946d
commit 836620bfbb
9 changed files with 110 additions and 3 deletions
@@ -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);
}