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

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 14:08:16 PDT 2024


================
@@ -2072,6 +2072,23 @@ void LLParser::parseOptionalVisibility(unsigned &Res) {
   Lex.Lex();
 }
 
+static GlobalValueSummary::ImportKind
+parseOptionalImportType(lltok::Kind Kind) {
+  GlobalValueSummary::ImportKind Res;
+  switch (Kind) {
+  default:
+    Res = GlobalValueSummary::Definition;
----------------
teresajohnson wrote:

This case should be an error I think? It corresponds to importType that is not known.

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


More information about the llvm-commits mailing list