[clang] [llvm] [ThinLTO]Record import type in GlobalValueSummary::GVFlags (PR #87597)

Mingming Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 15:05:19 PDT 2024


================
@@ -635,7 +635,8 @@ static void computeFunctionSummary(
                               HasIndirBranchToBlockAddress || HasIFuncCall;
   GlobalValueSummary::GVFlags Flags(
       F.getLinkage(), F.getVisibility(), NotEligibleForImport,
-      /* Live = */ false, F.isDSOLocal(), F.canBeOmittedFromSymbolTable());
+      /* Live = */ false, F.isDSOLocal(), F.canBeOmittedFromSymbolTable(),
+      /*ImportType=*/GlobalValueSummary::ImportKind::Definition);
----------------
minglotus-6 wrote:

done. Fixed all callsites of `GVFlags` constructor.

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


More information about the cfe-commits mailing list