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