[clang] [clang][ssaf] Add EntityLinkage data structure (PR #181718)

Aviral Goel via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 16 11:27:50 PST 2026


================
@@ -23,8 +24,11 @@ namespace clang::ssaf {
 class TUSummary {
   /// Identifies the translation unit.
   BuildNamespace TUNamespace;
+
   EntityIdTable IdTable;
 
+  std::map<EntityId, EntityLinkage> LinkageTable;
----------------
aviralg wrote:

I agree. We had a discussion with @jkorous-apple and his design choice is to have separate maps for separate chunks of information. That way we only make available what is needed at a given point. This follows the ECS design pattern used in game design.

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


More information about the cfe-commits mailing list