diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-19 16:16:35 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-19 16:16:35 +0800 |
commit | 128681501534a77c371c63c9787ba23f5df3743b (patch) | |
tree | 4b32c600ebc1047c8fa2e81ab6ff32c1c7aa8249 /src/hir/serialise.cpp | |
parent | 183153147d29e08a01e2930bbccf894917bc2a14 (diff) | |
download | mrust-128681501534a77c371c63c9787ba23f5df3743b.tar.gz |
All - Include proc_macro attribute list in metadata
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r-- | src/hir/serialise.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp index 2705293c..c31c84fc 100644 --- a/src/hir/serialise.cpp +++ b/src/hir/serialise.cpp @@ -53,6 +53,7 @@ namespace { template<typename T> void serialise_vec(const ::std::vector<T>& vec) { + TRACE_FUNCTION_F("size=" << vec.size()); m_out.write_count(vec.size()); for(const auto& i : vec) serialise(i); @@ -155,7 +156,7 @@ namespace { } void serialise_simplepath(const ::HIR::SimplePath& path) { - DEBUG(path); + TRACE_FUNCTION_F(path); m_out.write_string(path.m_crate_name); serialise_vec(path.m_components); } @@ -242,6 +243,14 @@ namespace { } + void serialise(const ::HIR::ProcMacro& pm) + { + TRACE_FUNCTION_F("pm = ProcMacro { " << pm.name << ", " << pm.path << ", [" << pm.attributes << "] }"); + serialise(pm.name); + serialise(pm.path); + serialise_vec(pm.attributes); + } + void serialise_crate(const ::HIR::Crate& crate) { m_out.write_string(crate.m_crate_name); |