Skip to content

Commit

Permalink
change BB name printing to be like LLVM's
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Oct 10, 2023
1 parent 5409b46 commit 64ea855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ir/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64ea855

Please sign in to comment.