[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
================
@@ -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;
----------------
minglotus-6 wrote:
done, by changing `parseOptionalImportType` to a member function of `LLParser` class (from a static free function) so it could return `tokError`.
https://github.com/llvm/llvm-project/pull/87597
More information about the cfe-commits
mailing list