[PATCH] D83004: [UpdateCCTestChecks] Include generated functions if asked
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 01:43:54 PDT 2020
arichardson added a comment.
Maybe add another test that checks for the @__cxx_global_var_init() constructor function?
E.g. something like this:
int init_func(int arg) {
return arg + 1;
}
int my_global = init_func(2);
================
Comment at: llvm/utils/update_cc_test_checks.py:274-277
prefixes = p[0]
for prefix in prefixes:
func_dict.update({prefix: dict()})
+ func_order.update({prefix: []})
----------------
This should avoid a few update() calls. Not that performance really matters here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83004/new/
https://reviews.llvm.org/D83004
More information about the llvm-commits
mailing list