move this into the right file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47925 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp
index 069e144..15472a4 100644
--- a/Basic/TargetInfo.cpp
+++ b/Basic/TargetInfo.cpp
@@ -53,6 +53,12 @@
//===----------------------------------------------------------------------===//
+TargetInfo::~TargetInfo() {
+ delete PrimaryTarget;
+ for (unsigned i = 0; i < SecondaryTargets.size(); ++i)
+ delete SecondaryTargets[i];
+}
+
const char* TargetInfo::getTargetTriple() const {
return PrimaryTarget->getTargetTriple();
}
diff --git a/Basic/Targets.cpp b/Basic/Targets.cpp
index d87e386..7d64942 100644
--- a/Basic/Targets.cpp
+++ b/Basic/Targets.cpp
@@ -827,9 +827,3 @@
return TI;
}
-TargetInfo::~TargetInfo() {
- delete PrimaryTarget;
- for (unsigned i = 0; i < SecondaryTargets.size(); ++i)
- delete SecondaryTargets[i];
-}
-