mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 17:16:49 +00:00
Distinguish between name IDs and string IDs in the type system. (#3341)
Add a `NameId` that is effectively just a wrapper around a `StringId`, with some additional predefined values for names that don't correspond to strings, such as the name of `self` or the function's return slot.
This commit is contained in:
1 parent
84bc8cc4bf
commit
71aa4a45be
206 files changed
+1050
-921
No files matched your search
@@ -21,7 +21,7 @@ fn G() { F(); }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @G() {
|
||||
// CHECK:STDOUT: !entry:
|
||||
// CHECK:STDOUT: %F.ref: <function> = name_reference "F", file.%F
|
||||
// CHECK:STDOUT: %F.ref: <function> = name_reference F, file.%F
|
||||
// CHECK:STDOUT: %.loc9: init () = call %F.ref()
|
||||
// CHECK:STDOUT: return
|
||||
// CHECK:STDOUT: }
|
||||
Reference in new issue
Block a user