mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 06:44:46 +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:
@@ -178,6 +178,9 @@ auto LocId::Print(llvm::raw_ostream& out) const -> void {
|
||||
break;
|
||||
case Kind::NodeId:
|
||||
out << Label << "_" << node_id();
|
||||
if (is_desugared()) {
|
||||
out << "_desugared";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user