[libc] Use entrypoints.txt as the single source of list of functions for a platform.
[lldb.git] / libc / utils / HdrGen / PublicAPICommand.h
index bfe2e5f..fb0a7a8 100644 (file)
@@ -26,9 +26,15 @@ class RecordKeeper;
 namespace llvm_libc {
 
 class PublicAPICommand : public Command {
+private:
+  const std::vector<std::string> &EntrypointNameList;
+
 public:
   static const char Name[];
 
+  PublicAPICommand(const std::vector<std::string> &EntrypointNames)
+      : EntrypointNameList(EntrypointNames) {}
+
   void run(llvm::raw_ostream &OS, const ArgVector &Args,
            llvm::StringRef StdHeader, llvm::RecordKeeper &Records,
            const Command::ErrorReporter &Reporter) const override;