diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-17 15:17:14 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-17 15:17:14 +0800 |
commit | 2d6ce59b45d3d6062ce427da9b04ce2ba7d98240 (patch) | |
tree | 86a4774588526b2c1b10dd57a9b38e4236433a9b | |
parent | e912058e6cfeb4ace0222c5ee8c4855043c7ef7d (diff) | |
download | mrust-2d6ce59b45d3d6062ce427da9b04ce2ba7d98240.tar.gz |
HIR Typecheck CS - (minor) Logging
-rw-r--r-- | src/hir_typeck/expr_cs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp index d48bf8b2..5c3ac0ec 100644 --- a/src/hir_typeck/expr_cs.cpp +++ b/src/hir_typeck/expr_cs.cpp @@ -1424,7 +1424,7 @@ namespace { const auto& lang_Index = this->context.m_crate.get_lang_item_path(node.span(), "index"); const auto& val_ty = this->context.get_type(node.m_value->m_res_type); const auto& idx_ty = this->context.get_type(node.m_index->m_res_type); - DEBUG("(Index) val=" << val_ty << ", idx=" << idx_ty << ""); + TRACE_FUNCTION_F("Index: val=" << val_ty << ", idx=" << idx_ty << ""); // NOTE: Indexing triggers autoderef @@ -1503,6 +1503,7 @@ namespace { } void visit(::HIR::ExprNode_Deref& node) override { const auto& ty = this->context.get_type(node.m_value->m_res_type); + TRACE_FUNCTION_F("Deref: ty=" << ty); TU_MATCH_DEF(::HIR::TypeRef::Data, (ty.m_data), (e), ( @@ -1534,7 +1535,7 @@ namespace { void visit(::HIR::ExprNode_CallValue& node) override { // TODO: const auto& ty = this->context.get_type(node.m_value->m_res_type); - DEBUG("(CallValue) ty = " << ty); + TRACE_FUNCTION_F("CallValue: ty=" << ty); TU_MATCH_DEF(decltype(ty.m_data), (ty.m_data), (e), ( |