From ff7b16c1d69f96bb26f08416479625957fe8f95d Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 25 Apr 2005 02:55:55 +0000 Subject: [PATCH] Shut GCC 4.0 up about classes that have virtual functions but a non-virtual destructor. Just add the do-nothing virtual destructor. llvm-svn: 21524 --- llvm/include/llvm/Target/TargetFrameInfo.h | 2 ++ llvm/lib/Target/TargetFrameInfo.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/llvm/include/llvm/Target/TargetFrameInfo.h b/llvm/include/llvm/Target/TargetFrameInfo.h index 6097d8c8fc63..c302096bf1d9 100644 --- a/llvm/include/llvm/Target/TargetFrameInfo.h +++ b/llvm/include/llvm/Target/TargetFrameInfo.h @@ -41,6 +41,8 @@ public: TargetFrameInfo(StackDirection D, unsigned StackAl, int LAO) : StackDir(D), StackAlignment(StackAl), LocalAreaOffset(LAO) {} + virtual ~TargetFrameInfo(); + // These methods return information that describes the abstract stack layout // of the target machine. diff --git a/llvm/lib/Target/TargetFrameInfo.cpp b/llvm/lib/Target/TargetFrameInfo.cpp index 7255b3254f8c..f54e042df9d4 100644 --- a/llvm/lib/Target/TargetFrameInfo.cpp +++ b/llvm/lib/Target/TargetFrameInfo.cpp @@ -16,6 +16,10 @@ using namespace llvm; +TargetFrameInfo::~TargetFrameInfo() +{ +} + //===--------------------------------------------------------------------===// // These methods provide details of the stack frame used by Sparc, thus they // are Sparc specific.