aboutsummaryrefslogtreecommitdiff
path: root/Basic/TargetInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-05 00:53:34 +0000
committerChris Lattner <sabre@nondot.org>2008-03-05 00:53:34 +0000
commit544f043d7667d581792f3ac232d24343481d61d7 (patch)
tree9141540dbac236c525d6c0023237462cdc5e4945 /Basic/TargetInfo.cpp
parent330dddd19406f9cc227e59e0bb0a36ecdc52915e (diff)
move this into the right file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/TargetInfo.cpp')
-rw-r--r--Basic/TargetInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp
index 069e144a74..15472a473c 100644
--- a/Basic/TargetInfo.cpp
+++ b/Basic/TargetInfo.cpp
@@ -53,6 +53,12 @@ void TargetInfo::getLongDoubleInfo(uint64_t &Size, unsigned &Align,
//===----------------------------------------------------------------------===//
+TargetInfo::~TargetInfo() {
+ delete PrimaryTarget;
+ for (unsigned i = 0; i < SecondaryTargets.size(); ++i)
+ delete SecondaryTargets[i];
+}
+
const char* TargetInfo::getTargetTriple() const {
return PrimaryTarget->getTargetTriple();
}