[GlobalIsel] Fix fallback if stack protector isn't supported.
[llvm-project.git] / libc / utils / HdrGen / PublicAPICommand.h
blobfb0a7a81cf277a3f9d2a266a86bd541754305e18
1 //===-- Implementation of PublicAPICommand ----------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H
10 #define LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H
12 #include "Command.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/TableGen/Error.h"
16 #include "llvm/TableGen/Record.h"
18 namespace llvm {
20 class raw_ostream;
21 class Record;
22 class RecordKeeper;
24 } // namespace llvm
26 namespace llvm_libc {
28 class PublicAPICommand : public Command {
29 private:
30 const std::vector<std::string> &EntrypointNameList;
32 public:
33 static const char Name[];
35 PublicAPICommand(const std::vector<std::string> &EntrypointNames)
36 : EntrypointNameList(EntrypointNames) {}
38 void run(llvm::raw_ostream &OS, const ArgVector &Args,
39 llvm::StringRef StdHeader, llvm::RecordKeeper &Records,
40 const Command::ErrorReporter &Reporter) const override;
43 } // namespace llvm_libc
45 #endif // LLVM_LIBC_UTILS_HDRGEN_PUBLICAPICOMMAND_H