aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Target/TargetFrameInfo.h2
-rw-r--r--lib/Target/TargetFrameInfo.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetFrameInfo.h b/include/llvm/Target/TargetFrameInfo.h
index 6097d8c8fc..c302096bf1 100644
--- a/include/llvm/Target/TargetFrameInfo.h
+++ b/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/lib/Target/TargetFrameInfo.cpp b/lib/Target/TargetFrameInfo.cpp
index 7255b3254f..f54e042df9 100644
--- a/lib/Target/TargetFrameInfo.cpp
+++ b/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.