Skip to content

Commit 327e7e7

Browse files
authored
Get rid of the Instruction::name() method (#458)
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 90d4aa7 commit 327e7e7

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

src/compiler/compile_output_trace.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ auto TraceOutput::operator()(
5757
const sourcemeta::core::WeakPointer &instance_location,
5858
const sourcemeta::core::JSON &annotation) -> void {
5959

60-
const auto short_step_name{step.name()};
60+
const auto short_step_name{
61+
InstructionNames[static_cast<std::underlying_type_t<InstructionIndex>>(
62+
step.type)]};
6163
auto effective_evaluate_path{evaluate_path.resolve_from(this->base_)};
6264

6365
// Attempt to get vocabulary information if we can get it

src/evaluator/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sourcemeta_library(NAMESPACE sourcemeta PROJECT blaze NAME evaluator
22
FOLDER "Blaze/Evaluator"
33
PRIVATE_HEADERS error.h value.h instruction.h string_set.h
44
SOURCES evaluator.cc dispatch.inc.h
5-
evaluator_string_set.cc evaluator_instruction.cc
5+
evaluator_string_set.cc
66
evaluator_complete.h evaluator_dynamic.h
77
evaluator_track.h evaluator_fast.h)
88

src/evaluator/evaluator_instruction.cc

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/evaluator/include/sourcemeta/blaze/evaluator_instruction.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,6 @@ struct Instruction {
249249
const std::size_t schema_resource;
250250
const Value value;
251251
const Instructions children;
252-
253-
/// Get the name of the instruction as a string
254-
SOURCEMETA_BLAZE_EVALUATOR_EXPORT
255-
auto name() const -> std::string_view;
256252
};
257253

258254
} // namespace sourcemeta::blaze

0 commit comments

Comments
 (0)