mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-25 19:22:07 +00:00
Fix dumping function to make them use generic ostream
* src/abg-writer.cc (dump(const decl_base_sptr, std::ostream&)): Do not dump the content to cerr here. Rather dump to the output stream given in parameter. Oops. (dump(const translation_unit&, std::ostream&)): Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
b462192739
commit
2dd9d92e34
@ -2131,7 +2131,7 @@ dump(const decl_base_sptr d, std::ostream& o)
|
||||
{
|
||||
xml_writer::write_context ctxt(o);
|
||||
write_decl(d, ctxt, /*indent=*/0);
|
||||
cerr << "\n";
|
||||
o << "\n";
|
||||
}
|
||||
|
||||
/// Serialize a pointer to decl_base to stderr.
|
||||
@ -2187,7 +2187,7 @@ dump(const translation_unit& t, std::ostream& o)
|
||||
{
|
||||
xml_writer::write_context ctxt(o);
|
||||
write_translation_unit(t, ctxt, /*indent=*/0);
|
||||
cerr << "\n";
|
||||
o << "\n";
|
||||
}
|
||||
|
||||
/// Serialize an instance of @ref translation_unit to stderr.
|
||||
|
Loading…
Reference in New Issue
Block a user