[libc-commits] [PATCH] D72253: [llvm-libc] Fix missing virtual destructor
Guillaume Chatelet via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Jan 6 04:36:02 PST 2020
gchatelet updated this revision to Diff 236325.
gchatelet added a comment.
- Fix newline + remove =0
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72253/new/
https://reviews.llvm.org/D72253
Files:
libc/utils/HdrGen/CMakeLists.txt
libc/utils/HdrGen/Command.cpp
libc/utils/HdrGen/Command.h
Index: libc/utils/HdrGen/Command.h
===================================================================
--- libc/utils/HdrGen/Command.h
+++ 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;
Index: libc/utils/HdrGen/Command.cpp
===================================================================
--- /dev/null
+++ libc/utils/HdrGen/Command.cpp
@@ -0,0 +1,7 @@
+#include "Command.h"
+
+namespace llvm_libc {
+
+Command::~Command() {}
+
+} // namespace llvm_libc
Index: libc/utils/HdrGen/CMakeLists.txt
===================================================================
--- libc/utils/HdrGen/CMakeLists.txt
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72253.236325.patch
Type: text/x-patch
Size: 1019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200106/c52df814/attachment.bin>
More information about the libc-commits
mailing list