diff options
author | John Hodge <tpg@mutabah.net> | 2017-07-09 00:01:06 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-07-09 00:01:06 +0800 |
commit | 99cafa37f5be81db916a1af8e21f2043eb0babd0 (patch) | |
tree | bceb823eda78235afc263a83286bfbbae692ee50 /src/hir/serialise.cpp | |
parent | 4a954d768f5d314133e85629546fdb4a4f587d2d (diff) | |
download | mrust-99cafa37f5be81db916a1af8e21f2043eb0babd0.tar.gz |
HIR Serialise - (incomplete) Fixes for function ordering
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r-- | src/hir/serialise.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp index 78efe261..b379312d 100644 --- a/src/hir/serialise.cpp +++ b/src/hir/serialise.cpp @@ -150,11 +150,9 @@ namespace { } void serialise_simplepath(const ::HIR::SimplePath& path) { - //TRACE_FUNCTION_F("path="<<path); + DEBUG(path); m_out.write_string(path.m_crate_name); - m_out.write_count(path.m_components.size()); - for(const auto& c : path.m_components) - m_out.write_string(c); + serialise_vec(path.m_components); } void serialise_pathparams(const ::HIR::PathParams& pp) { @@ -164,7 +162,7 @@ namespace { } void serialise_genericpath(const ::HIR::GenericPath& path) { - //TRACE_FUNCTION_F("path="<<path); + TRACE_FUNCTION_F(path); serialise_simplepath(path.m_path); serialise_pathparams(path.m_params); } @@ -217,6 +215,7 @@ namespace { m_out.write_bool(pd.m_is_sized); } void serialise(const ::HIR::GenericBound& b) { + TRACE_FUNCTION_F(b); TU_MATCHA( (b), (e), (Lifetime, m_out.write_tag(0); |