[llvm] [LLVM] Create `lf_alias` nodes for `typedef` and `using` (PR #153936)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 06:01:00 PDT 2025


================
@@ -952,6 +952,19 @@ class EndPrecompRecord : public TypeRecord {
   uint32_t Signature = 0;
 };
 
+// LF_ALIAS
+class AliasRecord : public TypeRecord {
+public:
+  AliasRecord() = default;
+  explicit AliasRecord(TypeRecordKind Kind) : TypeRecord(Kind) {}
+  AliasRecord(TypeIndex UnderlyingType, StringRef Name)
+      : TypeRecord(TypeRecordKind::Alias), UnderlyingType(UnderlyingType), Name(Name) {}
+
+  TypeIndex UnderlyingType;
+  StringRef Name;
+
----------------
aganea wrote:

Remove extra blank line

https://github.com/llvm/llvm-project/pull/153936


More information about the llvm-commits mailing list