diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-07-20 14:34:22 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-07-20 14:34:22 +0800 |
commit | 9b15cb5ab10ff29bed7afeb6520f4b3844f73bad (patch) | |
tree | 19f85a0db5a17d8b8282d0d33c35e7cdd0623704 /tools/dump_hirfile/main.cpp | |
parent | 4ffc42457c1265dfa6ee3bb2418f16ed4fd57fef (diff) | |
download | mrust-9b15cb5ab10ff29bed7afeb6520f4b3844f73bad.tar.gz |
dump_hirfile - Fix publicity handling
Diffstat (limited to 'tools/dump_hirfile/main.cpp')
-rw-r--r-- | tools/dump_hirfile/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dump_hirfile/main.cpp b/tools/dump_hirfile/main.cpp index 8cdf1691..47436950 100644 --- a/tools/dump_hirfile/main.cpp +++ b/tools/dump_hirfile/main.cpp @@ -148,7 +148,7 @@ void Dumper::dump_crate(const char* name, const ::HIR::Crate& crate) const } void Dumper::dump_module(::HIR::ItemPath ip, const ::HIR::Publicity& pub, const ::HIR::Module& mod) const { - if( !filters.public_only && !pub.is_global() ) + if( filters.public_only && !pub.is_global() ) { return ; } @@ -216,7 +216,7 @@ void Dumper::dump_function(::HIR::ItemPath ip, const ::HIR::Publicity& pub, cons if( !this->filters.types.functions ) { return ; } - if( !filters.public_only && !pub.is_global() ) { + if( filters.public_only && !pub.is_global() ) { return ; } ::std::cout << indent << "fn " << ip << fcn.m_params.fmt_args() << "("; |