Skip to content

Commit 43c103a

Browse files
committed
move this into the right file.
llvm-svn: 47925
1 parent e516aa1 commit 43c103a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clang/Basic/TargetInfo.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ void TargetInfo::getLongDoubleInfo(uint64_t &Size, unsigned &Align,
5353

5454
//===----------------------------------------------------------------------===//
5555

56+
TargetInfo::~TargetInfo() {
57+
delete PrimaryTarget;
58+
for (unsigned i = 0; i < SecondaryTargets.size(); ++i)
59+
delete SecondaryTargets[i];
60+
}
61+
5662
const char* TargetInfo::getTargetTriple() const {
5763
return PrimaryTarget->getTargetTriple();
5864
}

clang/Basic/Targets.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -827,9 +827,3 @@ TargetInfo* TargetInfo::CreateTargetInfo(const std::string* TriplesStart,
827827
return TI;
828828
}
829829

830-
TargetInfo::~TargetInfo() {
831-
delete PrimaryTarget;
832-
for (unsigned i = 0; i < SecondaryTargets.size(); ++i)
833-
delete SecondaryTargets[i];
834-
}
835-

0 commit comments

Comments
 (0)