[clang] [clang][ssaf][NFC] Rework how the Force linker anchors are defined and used (PR #189409)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 20 09:07:39 PDT 2026


================
@@ -168,7 +168,9 @@ static llvm::Registry<JSONFormat::FormatInfo>::Add<CallGraphJSONFormatInfo>
     RegisterFormatInfo(CallGraphSummary::Name,
                        "JSON Format info for CallGraph summary");
 
+namespace clang::ssaf {
 // This anchor is used to force the linker to link in the generated object file
 // and thus register the JSON format for CallGraphSummary.
----------------
steakhal wrote:

```suggestion
```

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


More information about the cfe-commits mailing list