summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2018-06-19 11:58:10 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2018-06-19 11:58:10 +0000
commit3de9664494777f30c1c50f8a8c9cb9b914b476fa (patch)
treeed736608e6b3f45b6c5fb9f3fa1816bbac5bb36f
parent44b4c54e2698657d57ffcbbd9c26cb88c1a2cce9 (diff)
downloadbcm5719-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.h2
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;
OpenPOWER on IntegriCloud