Model var as a pattern operator (#4720)

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
Geoff Romer
2025-01-17 17:51:34 +00:00
committed by GitHub
co-authored by Richard Smith
parent 6572da7314
commit 13434f0e8a
510 changed files with 11819 additions and 3352 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ auto FileContext::BuildGlobalVariableDecl(SemIR::VarStorage var_storage)
-> llvm::GlobalVariable* {
// TODO: Mangle name.
auto mangled_name =
*sem_ir().names().GetAsStringIfIdentifier(var_storage.name_id);
*sem_ir().names().GetAsStringIfIdentifier(var_storage.pretty_name_id);
auto* type = GetType(var_storage.type_id);
return new llvm::GlobalVariable(
llvm_module(), type,