Skip to content

Commit 58002c9

Browse files
committed
Finish removing old g_d_o paths
1 parent 70fed4b commit 58002c9

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

source/sema.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,6 @@ class sema
449449

450450
// Now we have the lookup result, but based on lookup constraints flags
451451
// we may decide it's unsuitable for this lookup and not use it...
452-
//
453-
// TODO: The initial versions of these conditions are written to make the
454-
// new lookup results exactly match the prior lookup results, so we don't
455-
// introduce regressions. However, not all these wrinkles may be needed
456-
// or desirable, so after we know we didn't introduce regressions we can
457-
// consider tweaking/simplifying them -- which is easier now that they're
458-
// collected all in one place
459452
if (
460453
result
461454
// If we were told not to look beyond the current function
@@ -482,33 +475,6 @@ class sema
482475

483476
}
484477

485-
////--------- START TEMPORARY REGRESSION TEST CODE FOR G_D_O OPTIMIZATION VERIFICATION ---------
486-
//// Now do a regression test violation check
487-
////
488-
//if (
489-
// flag_internal_debug
490-
// && result_old != result
491-
// )
492-
//{
493-
// std::cerr << "\n Internal compiler error - see cppfront-ice-data.out for debug information\n\n";
494-
495-
// auto out = std::ofstream{"cppfront-ice-data.out"};
496-
497-
// out << "g_d_o arguments:\n";
498-
// out << " " << static_cast<void const*>(&t) << " -> " << t.as_string_view() << " @ " << t.position().to_string()
499-
// << ", token order # " << t.get_global_token_order() << "\n";
500-
// out << " look_beyond_current_function: " << std::boolalpha << look_beyond_current_function << "\n";
501-
// out << " include_implicit_this: " << std::boolalpha << include_implicit_this << "\n";
502-
503-
// out << "result_old: " << static_cast<void const*>(result_old) << "\n";
504-
// out << "result: " << static_cast<void const*>(result ) << "\n\n";
505-
506-
// debug_print(out);
507-
508-
// exit(EXIT_FAILURE);
509-
//}
510-
////--------- END TEMPORARY REGRESSION TEST CODE FOR G_D_O OPTIMIZATION VERIFICATION -----------
511-
512478
return result;
513479
}
514480

0 commit comments

Comments
 (0)