[libc-commits] [PATCH] D89267: Move Cannonical Function List

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Oct 13 15:22:35 PDT 2020


sivachandra added a comment.

Overall LGTM but I have couple more comments over the previous ones.



================
Comment at: libc/utils/HdrGen/Main.cpp:25
+    "entrypoints",
+    llvm::cl::desc("Path to the entrypoints.txt file for your system."),
+    llvm::cl::value_desc("<filename>"), llvm::cl::Required);
----------------
s/your system/your target


================
Comment at: libc/utils/HdrGen/PublicAPICommand.cpp:92
     if (G.FunctionSpecMap.find(Name) == G.FunctionSpecMap.end())
-      llvm::PrintFatalError(Name + " not found in any standard spec.\n");
+      continue; // this used to be an error, but isn't anymore because
+                // we're getting the full function list from entrypoints.txt
----------------
When running the `PublicAPICommand`, the `FunctionSpecMap` will be for the header file we are generating. So, it should still be an error if a function is not found, no?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89267/new/

https://reviews.llvm.org/D89267



More information about the libc-commits mailing list