[llvm] [GSYM] Callsites: Add data format support and loading from YAML (PR #109781)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 16:09:54 PDT 2024


================
@@ -177,6 +179,16 @@ static void parseArgs(int argc, char **argv) {
 
   LookupAddressesFromStdin = Args.hasArg(OPT_addresses_from_stdin);
   StoreMergedFunctionInfo = Args.hasArg(OPT_merged_functions);
+
+  for (const llvm::opt::Arg *A : Args.filtered(OPT_callsites_from_yaml_EQ))
+    if (A->getValue() && A->getValue()[0] != '\0')
+      CallSiteYamlPaths.emplace_back(A->getValue());
+    else {
+      llvm::errs()
----------------
alx32 wrote:

There are a few places to refactor this. Can I do this in an follow up PR right after I land this ? 

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


More information about the llvm-commits mailing list