From 64ea855b8fcfca2219d499dd61e151abe7d6139e Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Tue, 10 Oct 2023 16:52:04 +0100 Subject: [PATCH] change BB name printing to be like LLVM's --- ir/function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/function.cpp b/ir/function.cpp index b737fd89e..31b1766d4 100644 --- a/ir/function.cpp +++ b/ir/function.cpp @@ -105,7 +105,7 @@ void BasicBlock::rauw(const Value &what, Value &with) { ostream& operator<<(ostream &os, const BasicBlock &bb) { if (!bb.name.empty()) - os << bb.name << ":\n"; + os << string_view(bb.name).substr(1) << ":\n"; for (auto &i : bb.instrs()) { os << " "; i.print(os);