Shut GCC 4.0 up about classes that have virtual functions but a non-virtual
authorReid Spencer <rspencer@reidspencer.com>
Mon, 25 Apr 2005 02:55:55 +0000 (02:55 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 25 Apr 2005 02:55:55 +0000 (02:55 +0000)
destructor. Just add the do-nothing virtual destructor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21524 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetFrameInfo.h
lib/Target/TargetFrameInfo.cpp

index 6097d8c8fc636089f278365f0997457a1ca548b0..c302096bf1d904de6c9fe2973de3aa49ce5c2e85 100644 (file)
@@ -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.
 
index 7255b3254f8cde06a5c19cdb75b3f8f0143230ee..f54e042df9d4347b07572eec67c6ca1437d9558f 100644 (file)
 
 using namespace llvm;
 
+TargetFrameInfo::~TargetFrameInfo() 
+{
+}
+
 //===--------------------------------------------------------------------===//
 // These methods provide details of the stack frame used by Sparc, thus they
 // are Sparc specific.