diff --git a/libc/utils/HdrGen/CMakeLists.txt b/libc/utils/HdrGen/CMakeLists.txt --- a/libc/utils/HdrGen/CMakeLists.txt +++ b/libc/utils/HdrGen/CMakeLists.txt @@ -1,5 +1,6 @@ add_tablegen(libc-hdrgen llvm-libc Command.h + Command.cpp Generator.cpp Generator.h IncludeFileCommand.cpp diff --git a/libc/utils/HdrGen/Command.h b/libc/utils/HdrGen/Command.h --- a/libc/utils/HdrGen/Command.h +++ b/libc/utils/HdrGen/Command.h @@ -42,6 +42,8 @@ } }; + virtual ~Command(); + virtual void run(llvm::raw_ostream &OS, const ArgVector &Args, llvm::StringRef StdHeader, llvm::RecordKeeper &Records, const ErrorReporter &Reporter) const = 0; diff --git a/libc/utils/HdrGen/Command.cpp b/libc/utils/HdrGen/Command.cpp new file mode 100644 --- /dev/null +++ b/libc/utils/HdrGen/Command.cpp @@ -0,0 +1,15 @@ +//===---- Implementation of the main header generation class -----*- C++ -*===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "Command.h" + +namespace llvm_libc { + +Command::~Command() {} + +} // namespace llvm_libc