General: Default constructors and destructors where applicable

This commit is contained in:
Lioncash 2018-01-23 21:11:07 -05:00 committed by MerryMage
parent d1e4526e1c
commit 8ee854232c
4 changed files with 4 additions and 4 deletions

View file

@ -75,7 +75,7 @@ A32EmitX64::A32EmitX64(BlockOfCode* code, A32::UserCallbacks cb, A32::Jit* jit_i
code->PreludeComplete();
}
A32EmitX64::~A32EmitX64() {}
A32EmitX64::~A32EmitX64() = default;
A32EmitX64::BlockDescriptor A32EmitX64::Emit(IR::Block& block) {
code->align();

View file

@ -57,7 +57,7 @@ A64EmitX64::A64EmitX64(BlockOfCode* code, A64::UserConfig conf)
code->PreludeComplete();
}
A64EmitX64::~A64EmitX64() {}
A64EmitX64::~A64EmitX64() = default;
A64EmitX64::BlockDescriptor A64EmitX64::Emit(IR::Block& block) {
code->align();

View file

@ -34,7 +34,7 @@ void EmitContext::EraseInstruction(IR::Inst* inst) {
EmitX64::EmitX64(BlockOfCode* code)
: code(code) {}
EmitX64::~EmitX64() {}
EmitX64::~EmitX64() = default;
boost::optional<typename EmitX64::BlockDescriptor> EmitX64::GetBasicBlock(IR::LocationDescriptor descriptor) const {
auto iter = block_descriptors.find(descriptor);

View file

@ -80,7 +80,7 @@ static_assert(sizeof(Value) <= 2 * sizeof(u64), "IR::Value should be kept small
template <Type type_>
class TypedValue final : public Value {
public:
TypedValue() : Value() {}
TypedValue() = default;
template <Type other_type, typename = std::enable_if_t<(other_type & type_) != Type::Void>>
/* implicit */ TypedValue(const TypedValue<other_type>& value) : Value(value) {