| 19 | namespace LIEF::assembly::aarch64::py { |
| 20 | template<> |
| 21 | void create<aarch64::Operand>(nb::module_& m) { |
| 22 | nb::class_<aarch64::Operand> obj(m, "Operand", |
| 23 | R"doc(This class represents an operand for an AArch64 instruction)doc"_doc |
| 24 | ); |
| 25 | |
| 26 | obj |
| 27 | .def_prop_ro("to_string", &Operand::to_string, |
| 28 | R"doc(Pretty representation of the operand)doc"_doc |
| 29 | ) |
| 30 | LIEF_DEFAULT_STR(aarch64::Operand) |
| 31 | ; |
| 32 | |
| 33 | nb::module_ operands = m.def_submodule("operands"); |
| 34 | create<aarch64::operands::Immediate>(operands); |
| 35 | create<aarch64::operands::Register>(operands); |
| 36 | create<aarch64::operands::Memory>(operands); |
| 37 | create<aarch64::operands::PCRelative>(operands); |
| 38 | } |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected