Skip to content

Commit

Permalink
Merge pull request #157 from AnyDSL/no_color
Browse files Browse the repository at this point in the history
Add option to dump thorin IR without color.
  • Loading branch information
Hugobros3 authored Jun 24, 2024
2 parents 73f3c21 + 93258e5 commit 7bc8434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/thorin/util/scoped_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ Stream& ScopedWorld::stream(thorin::Stream& s) const {
return s;
}

void World::dump_scoped() const {
ScopedWorld s(*const_cast<World*>(this));
void World::dump_scoped(bool use_color) const {
ScopedWorld s(*const_cast<World*>(this), ScopedWorld::Config { use_color });
s.dump();
}

Expand Down
2 changes: 1 addition & 1 deletion src/thorin/world.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class World : public Streamable<World> {

/// @name logging
//@{
void dump_scoped() const;
void dump_scoped(bool=true) const;
void dump_scoped_to_disk() const;
Stream& stream(Stream&) const;
Stream& stream() { return *stream_; }
Expand Down

0 comments on commit 7bc8434

Please sign in to comment.