Skip to content

Commit

Permalink
Use std::string instead of COW string
Browse files Browse the repository at this point in the history
There is no much benefit from COW string since we have move
semantics in ports and unique identifiers of instructions.
  • Loading branch information
pavelkryukov committed Aug 30, 2018
1 parent e25c3d3 commit 51de9e1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 266 deletions.
252 changes: 0 additions & 252 deletions external/kryucow_string.h

This file was deleted.

8 changes: 1 addition & 7 deletions simulator/mips/mips_instr.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#include <infra/string_view.h>
#include <infra/types.h>

// COW string
#include <kryucow_string.h>

// Generic C++
#include <array>
#include <unordered_map>
Expand Down Expand Up @@ -196,11 +193,8 @@ class BaseMIPSInstr

uint64 sequence_id = NO_VAL64;

#if 0
std::string disasm = {};
#else
KryuCowString disasm = {};
#endif

void init( const ISAEntry& entry, MIPSVersion version);

// Predicate helpers - unary
Expand Down
7 changes: 0 additions & 7 deletions simulator/risc_v/riscv_instr.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
#include <infra/string_view.h>
#include <infra/types.h>

// COW string
#include <kryucow_string.h>

// Generic C++
#include <array>
#include <unordered_map>
Expand Down Expand Up @@ -44,11 +41,7 @@ class RISCVInstr

uint64 sequence_id = NO_VAL64;

#if 0
std::string disasm = {};
#else
KryuCowString disasm = {};
#endif

public:
RISCVInstr() = delete;
Expand Down

0 comments on commit 51de9e1

Please sign in to comment.