Tidying
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
#include <map>
|
||||
#include <utility>
|
||||
|
||||
#include "MemorySegment.hpp"
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
@@ -27,14 +28,14 @@ namespace Targets::TargetDescription
|
||||
TargetMemorySize size,
|
||||
std::uint8_t unitSize,
|
||||
const std::optional<TargetMemoryEndianness>& endianness,
|
||||
const std::map<std::string, MemorySegment, std::less<void>>& memorySegmentsByKey
|
||||
std::map<std::string, MemorySegment, std::less<void>>&& memorySegmentsByKey
|
||||
)
|
||||
: key(key)
|
||||
, startAddress(startAddress)
|
||||
, size(size)
|
||||
, unitSize(unitSize)
|
||||
, endianness(endianness)
|
||||
, memorySegmentsByKey(memorySegmentsByKey)
|
||||
, memorySegmentsByKey(std::move(memorySegmentsByKey))
|
||||
{}
|
||||
|
||||
std::optional<std::reference_wrapper<const MemorySegment>> tryGetMemorySegment(std::string_view key) const {
|
||||
|
||||
@@ -615,7 +615,6 @@ namespace Targets::TargetDescription
|
||||
static const auto typesByName = BiMap<std::string, TargetMemorySegmentType>{
|
||||
{"gp_registers", TargetMemorySegmentType::GENERAL_PURPOSE_REGISTERS},
|
||||
{"aliased", TargetMemorySegmentType::ALIASED},
|
||||
{"regs", TargetMemorySegmentType::REGISTERS},
|
||||
{"eeprom", TargetMemorySegmentType::EEPROM},
|
||||
{"flash", TargetMemorySegmentType::FLASH},
|
||||
{"fuses", TargetMemorySegmentType::FUSES},
|
||||
|
||||
Reference in New Issue
Block a user