diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-19 11:58:10 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-06-19 11:58:10 +0000 |
commit | 3de9664494777f30c1c50f8a8c9cb9b914b476fa (patch) | |
tree | ed736608e6b3f45b6c5fb9f3fa1816bbac5bb36f | |
parent | 44b4c54e2698657d57ffcbbd9c26cb88c1a2cce9 (diff) | |
download | bcm5719-llvm-3de9664494777f30c1c50f8a8c9cb9b914b476fa.tar.gz bcm5719-llvm-3de9664494777f30c1c50f8a8c9cb9b914b476fa.zip |
llvm-exegesis: mark ~ExegesisTarget() as virtual. Fixes build.
/build/llvm/tools/llvm-exegesis/lib/X86/../Target.h:32:3: error: 'exegesis::ExegesisTarget' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
~ExegesisTarget();
^
/build/llvm/tools/llvm-exegesis/lib/X86/Target.cpp:15:7: error: 'exegesis::(anonymous namespace)::ExegesisX86Target' has virtual functions but non-virtual destructor [-Werror,-Wnon-virtual-dtor]
class ExegesisX86Target : public ExegesisTarget {
^
llvm-svn: 335042
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/Target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Target.h b/llvm/tools/llvm-exegesis/lib/Target.h index 3db495276b4..25b66715c94 100644 --- a/llvm/tools/llvm-exegesis/lib/Target.h +++ b/llvm/tools/llvm-exegesis/lib/Target.h @@ -29,7 +29,7 @@ public: // Registers a target. Not thread safe. static void registerTarget(ExegesisTarget *T); - ~ExegesisTarget(); + virtual ~ExegesisTarget(); private: virtual bool matchesArch(llvm::Triple::ArchType Arch) const = 0; |