[llvm] [CFI][ThinLTO] Remove the need for CFI calculating ThinLTO GUIDs (PR #201370)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 17:49:39 PDT 2026


================
@@ -5316,21 +5316,30 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() {
         getReferencedTypeIds(FS, ReferencedTypeIds);
   }
 
-  SmallVector<StringRef, 4> Functions;
+  struct CfiFunctionRecord {
+    GlobalValue::GUID GUID = 0;
+    StringRef Name;
----------------
vitalybuka wrote:

just `SmallVector<pair<StringRef, GUID>>` ?

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


More information about the llvm-commits mailing list