From 8aa4b664331fff5d71f74cf6de77247f785135a2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 11 Feb 2016 18:12:57 -0800 Subject: 2649 More tweaks to the trace after all my debugging. --- 020run.cc | 2 ++ 059shape_shifting_recipe.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/020run.cc b/020run.cc index 90147e67..6481adb0 100644 --- a/020run.cc +++ b/020run.cc @@ -138,6 +138,8 @@ inline bool routine::completed() const { //? START_TRACING_UNTIL_END_OF_SCOPE; load_permanently("core.mu"); transform_all(); +//? DUMP(""); +//? exit(0); //: Step 2: load any .mu files provided at the commandline :(before "End Commandline Parsing") diff --git a/059shape_shifting_recipe.cc b/059shape_shifting_recipe.cc index ed6d66b7..5bb1126d 100644 --- a/059shape_shifting_recipe.cc +++ b/059shape_shifting_recipe.cc @@ -264,7 +264,6 @@ bool is_type_ingredient_name(const string& type) { recipe_ordinal new_variant(recipe_ordinal exemplar, const instruction& inst, const recipe& caller_recipe) { string new_name = next_unused_recipe_name(inst.name); - trace(9993, "transform") << "switching " << inst.name << " to specialized " << new_name << end(); assert(!contains_key(Recipe_ordinal, new_name)); recipe_ordinal new_recipe_ordinal = put(Recipe_ordinal, new_name, Next_recipe_ordinal++); // make a copy @@ -275,6 +274,7 @@ recipe_ordinal new_variant(recipe_ordinal exemplar, const instruction& inst, con put(Recipe, new_recipe_ordinal, get(Recipe, exemplar)); recipe& new_recipe = get(Recipe, new_recipe_ordinal); new_recipe.name = new_name; + trace(9993, "transform") << "switching " << inst.name << " to specialized " << header_label(new_recipe_ordinal) << end(); // Since the exemplar never ran any transforms, we have to redo some of the // work of the check_types_by_name transform while supporting type-ingredients. compute_type_names(new_recipe); -- cgit 1.4.1-2-gfad0 tml?h=hlt'>stats
path: root/html/001help.cc.html
blob: 799813a9048d83f8144e0c31465adc9fe93c11aa (plain) (tree)
1
2
3
4
5
6
7
8
9