diff options
| author | Dentomologist <dentomologist@gmail.com> | 2023-05-21 15:10:11 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2023-06-12 13:04:18 -0700 |
| commit | 4c2759f54161bd886f011d36a123c8b7f2987408 (patch) | |
| tree | 01f7c77532328164bcfe275c790420e6afee32e4 /Source/UnitTests/Common/x64EmitterTest.cpp | |
| parent | c8559a79332aa81e4060389d82cd8df885147972 (diff) | |
XEmitter: Add enum class Jump
Replace the bool parameter force5bytes in J, JMP, and J_CC with an enum
class Jump::Short/Near. Many callers set that parameter to the literal
'true', which was unclear if you didn't already know what it did.
Diffstat (limited to 'Source/UnitTests/Common/x64EmitterTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/x64EmitterTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/UnitTests/Common/x64EmitterTest.cpp b/Source/UnitTests/Common/x64EmitterTest.cpp index 79e5eea8a2..cd38efdcb7 100644 --- a/Source/UnitTests/Common/x64EmitterTest.cpp +++ b/Source/UnitTests/Common/x64EmitterTest.cpp @@ -292,7 +292,7 @@ TEST_F(x64EmitterTest, JMP) "jmp .-8"); emitter->NOP(6); - emitter->JMP(code_buffer, true); + emitter->JMP(code_buffer, XEmitter::Jump::Near); ExpectDisassembly("multibyte nop " "jmp .-11"); } |
