diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-11 18:12:57 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-11 18:12:57 -0800 |
commit | 8aa4b664331fff5d71f74cf6de77247f785135a2 (patch) | |
tree | 81f743df8e9ec6f1fb3ef60c18b8cc1457e89d47 | |
parent | 712b442fab487fcb8064f4744ff974c024109380 (diff) | |
download | mu-8aa4b664331fff5d71f74cf6de77247f785135a2.tar.gz |
2649
More tweaks to the trace after all my debugging.
-rw-r--r-- | 020run.cc | 2 | ||||
-rw-r--r-- | 059shape_shifting_recipe.cc | 2 |
2 files changed, 3 insertions, 1 deletions
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); |