[llvm] [LLVM] Create `lf_alias` nodes for `typedef` and `using` (PR #153936)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 29 19:47:34 PDT 2025
================
@@ -1728,14 +1728,17 @@ TypeIndex CodeViewDebug::lowerTypeAlias(const DIDerivedType *Ty) {
addToUDTs(Ty);
+ AliasRecord AR(UnderlyingTypeIndex, TypeName);
+ auto alias_index = TypeTable.writeLeafType(AR);
----------------
Walnut356 wrote:
Should be taken care of now. I used llvm-ir and `llc` since the .ll file ended up being about 3-4x smaller than the equivalent .asm (3kb vs 14kb) The additional checks ensure:
* `LF_ALIAS` is generated and references the correct underlying type
* variables reference the `LF_ALIAS` type instead of the underlying type
* the `S_UDT` node still exists and points to the `LF_ALIAS` node
https://github.com/llvm/llvm-project/pull/153936
More information about the llvm-commits
mailing list