mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 20:11:12 +01:00
Change from ToImplicit to AsDesugared (#5591)
This changes `ToImplicit` to `AsDesugared`, and adds a `GetLocIdForDesugaring` to `InstStore`. In particular, I'm motivated by the latter, to make it clearer what the intended call convention is.
This commit is contained in:
@@ -134,7 +134,7 @@ LLVM_DUMP_METHOD static auto Dump(const Context& context, SemIR::LocId loc_id)
|
||||
auto token = context.parse_tree().node_token(loc_id.node_id());
|
||||
auto line = context.tokens().GetLineNumber(token);
|
||||
auto col = context.tokens().GetColumnNumber(token);
|
||||
const char* implicit = loc_id.is_implicit() ? " implicit" : "";
|
||||
const char* implicit = loc_id.is_desugared() ? " implicit" : "";
|
||||
out << "LocId(" << FormatEscaped(context.sem_ir().filename()) << ":"
|
||||
<< line << ":" << col << implicit << ")";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user