diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-15 13:55:18 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-15 13:55:18 +0100 |
commit | d07c5bc14edbe071ee7b4f47f174780e95e451aa (patch) | |
tree | 889ed88ea6907119b75b7b76f616a604c9857e3d /asm/intel64/trivials.cpp | |
parent | 9e7f4c9d43b310c280cd6432cd4150411f4b914e (diff) |
Simplify Asm construction
Diffstat (limited to 'asm/intel64/trivials.cpp')
-rw-r--r-- | asm/intel64/trivials.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asm/intel64/trivials.cpp b/asm/intel64/trivials.cpp index 094d27f..eb1bbb8 100644 --- a/asm/intel64/trivials.cpp +++ b/asm/intel64/trivials.cpp @@ -9,13 +9,13 @@ Op_syscall::Op_syscall(): OpSimple({ 0x0F, 0x05 }) {} namespace { bool registered { - registerOp("nop", [](Asm::Args& args) -> std::shared_ptr<Op>{ + registerOp("nop", [](const Asm::Args& args) -> std::shared_ptr<Op>{ return std::make_shared<Op_nop>(); }) && - registerOp("ret", [](Asm::Args& args) -> std::shared_ptr<Op>{ + registerOp("ret", [](const Asm::Args& args) -> std::shared_ptr<Op>{ return std::make_shared<Op_ret>(); }) && - registerOp("syscall", [](Asm::Args& args) -> std::shared_ptr<Op>{ + registerOp("syscall", [](const Asm::Args& args) -> std::shared_ptr<Op>{ return std::make_shared<Op_syscall>(); }) }; |