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:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
#include "init.hpp"
|
||||
|
||||
#include "LIEF/visitors/Hash.hpp"
|
||||
#include "LIEF/Abstract/hash.hpp"
|
||||
|
||||
#include "LIEF/Abstract/Relocation.hpp"
|
||||
|
||||
@@ -26,7 +26,7 @@ template<class T>
|
||||
using setter_t = void (LIEF::Relocation::*)(T);
|
||||
|
||||
void init_LIEF_Relocation_class(py::module& m) {
|
||||
py::class_<LIEF::Relocation>(m, "Relocation")
|
||||
py::class_<LIEF::Relocation, LIEF::Object>(m, "Relocation")
|
||||
.def(py::init(),
|
||||
"Default constructor")
|
||||
|
||||
@@ -48,7 +48,7 @@ void init_LIEF_Relocation_class(py::module& m) {
|
||||
.def("__ne__", &LIEF::Relocation::operator!=)
|
||||
.def("__hash__",
|
||||
[] (const LIEF::Relocation& relocation) {
|
||||
return LIEF::Hash::hash(relocation);
|
||||
return LIEF::AbstractHash::hash(relocation);
|
||||
})
|
||||
|
||||
.def("__str__",
|
||||
|
||||
Reference in New Issue
Block a user