diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-22 18:32:17 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-22 18:32:17 +0800 |
commit | 1e1c20bea9987639ee1ca7e76965bbaa42eadc84 (patch) | |
tree | ff4278afba002ce7d183d1a34611b32d71edcd81 | |
parent | 85baf063e5b99b18850b06174f9474e47407967c (diff) | |
download | mrust-1e1c20bea9987639ee1ca7e76965bbaa42eadc84.tar.gz |
HIR Serialise - Slightly better debugging
-rw-r--r-- | src/hir/serialise.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp index 8428e530..e7b82cae 100644 --- a/src/hir/serialise.cpp +++ b/src/hir/serialise.cpp @@ -126,7 +126,7 @@ namespace { ), (Closure, DEBUG("-- Closure - " << ty); - assert(!"Encountered closure type!"); + BUG(Span(), "Encountered closure type when serialising - " << ty); ) ) } @@ -754,7 +754,7 @@ namespace { void serialise(const ::HIR::Struct& item) { - TRACE_FUNCTION; + TRACE_FUNCTION_F("Struct"); serialise_generics(item.m_params); m_out.write_tag( static_cast<int>(item.m_repr) ); @@ -773,7 +773,7 @@ namespace { } void serialise(const ::HIR::Union& item) { - TRACE_FUNCTION; + TRACE_FUNCTION_F("Union"); serialise_generics(item.m_params); m_out.write_tag( static_cast<int>(item.m_repr) ); |