Remove <cassert>
This commit is contained in:
parent
192a0029be
commit
2d6a86e43c
6 changed files with 7 additions and 8 deletions
|
@ -69,7 +69,7 @@ struct Jit::Impl {
|
||||||
for (CodePtr pos = block.code_ptr; pos < end;) {
|
for (CodePtr pos = block.code_ptr; pos < end;) {
|
||||||
char buffer[80];
|
char buffer[80];
|
||||||
size_t inst_size = LLVMDisasmInstruction(llvm_ctx, const_cast<u8*>(pos), remaining, (u64)pos, buffer, sizeof(buffer));
|
size_t inst_size = LLVMDisasmInstruction(llvm_ctx, const_cast<u8*>(pos), remaining, (u64)pos, buffer, sizeof(buffer));
|
||||||
assert(inst_size);
|
ASSERT(inst_size);
|
||||||
for (CodePtr i = pos; i < pos + inst_size; i++)
|
for (CodePtr i = pos; i < pos + inst_size; i++)
|
||||||
result.append(Common::StringFromFormat("%02x ", *i));
|
result.append(Common::StringFromFormat("%02x ", *i));
|
||||||
for (size_t i = inst_size; i < 10; i++)
|
for (size_t i = inst_size; i < 10; i++)
|
||||||
|
|
|
@ -47,7 +47,7 @@ struct ArmMatcher {
|
||||||
* @param instruction The instruction to decode.
|
* @param instruction The instruction to decode.
|
||||||
*/
|
*/
|
||||||
CallRetT call(Visitor& v, u32 instruction) const {
|
CallRetT call(Visitor& v, u32 instruction) const {
|
||||||
assert(Matches(instruction));
|
ASSERT(Matches(instruction));
|
||||||
return fn(v, instruction);
|
return fn(v, instruction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cassert>
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
|
|
|
@ -45,7 +45,7 @@ struct Thumb16Matcher {
|
||||||
* @param instruction The instruction to decode.
|
* @param instruction The instruction to decode.
|
||||||
*/
|
*/
|
||||||
CallRetT call(Visitor& v, u16 instruction) const {
|
CallRetT call(Visitor& v, u16 instruction) const {
|
||||||
assert(Matches(instruction));
|
ASSERT(Matches(instruction));
|
||||||
return fn(v, instruction);
|
return fn(v, instruction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ struct Thumb32Matcher {
|
||||||
* @param instruction The instruction to decode.
|
* @param instruction The instruction to decode.
|
||||||
*/
|
*/
|
||||||
CallRetT call(Visitor& v, u32 instruction) const {
|
CallRetT call(Visitor& v, u32 instruction) const {
|
||||||
assert(Matches(instruction));
|
ASSERT(Matches(instruction));
|
||||||
return fn(v, instruction);
|
return fn(v, instruction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ public:
|
||||||
if (imm5 == 0) return ", rrx";
|
if (imm5 == 0) return ", rrx";
|
||||||
return Common::StringFromFormat(", ror #%hhu", imm5);
|
return Common::StringFromFormat(", ror #%hhu", imm5);
|
||||||
}
|
}
|
||||||
assert(false);
|
ASSERT(false);
|
||||||
return "<internal error>";
|
return "<internal error>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ public:
|
||||||
case ShiftType::ROR:
|
case ShiftType::ROR:
|
||||||
return Common::StringFromFormat("%s, ror %s", RegToString(m), RegToString(s));
|
return Common::StringFromFormat("%s, ror %s", RegToString(m), RegToString(s));
|
||||||
}
|
}
|
||||||
assert(false);
|
ASSERT(false);
|
||||||
return "<internal error>";
|
return "<internal error>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ public:
|
||||||
case SignExtendRotation::ROR_24:
|
case SignExtendRotation::ROR_24:
|
||||||
return Common::StringFromFormat("%s, ror #24", RegToString(m));
|
return Common::StringFromFormat("%s, ror #24", RegToString(m));
|
||||||
}
|
}
|
||||||
assert(false);
|
ASSERT(false);
|
||||||
return "<internal error>";
|
return "<internal error>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue