mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
Refactor some parts of the Architecture:
* JSON visitor are located in the format namespace * Visitor are *real* visitor * Visitable class has been renamed to Object * Due to a bug in Visual Studio 2015, we move to VS2017
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "pyELF.hpp"
|
||||
|
||||
#include "LIEF/visitors/Hash.hpp"
|
||||
#include "LIEF/ELF/hash.hpp"
|
||||
#include "LIEF/ELF/SymbolVersionDefinition.hpp"
|
||||
|
||||
template<class T>
|
||||
@@ -32,7 +32,7 @@ using no_const_getter = T (SymbolVersionDefinition::*)(void);
|
||||
|
||||
void init_ELF_SymbolVersionDefinition_class(py::module& m) {
|
||||
|
||||
py::class_<SymbolVersionDefinition>(m, "SymbolVersionDefinition",
|
||||
py::class_<SymbolVersionDefinition, LIEF::Object>(m, "SymbolVersionDefinition",
|
||||
"Class which modelization of an entry defined in ``DT_VERDEF`` (or ``.gnu.version_d``)")
|
||||
|
||||
.def_property("version",
|
||||
@@ -56,7 +56,7 @@ void init_ELF_SymbolVersionDefinition_class(py::module& m) {
|
||||
.def("__ne__", &SymbolVersionDefinition::operator!=)
|
||||
.def("__hash__",
|
||||
[] (const SymbolVersionDefinition& svd) {
|
||||
return LIEF::Hash::hash(svd);
|
||||
return Hash::hash(svd);
|
||||
})
|
||||
|
||||
.def("__str__",
|
||||
|
||||
Reference in New Issue
Block a user