move this into the right file.

llvm-svn: 47925
This commit is contained in:
Chris Lattner 2008-03-05 00:53:34 +00:00
parent e516aa1127
commit 43c103ab1b
2 changed files with 6 additions and 6 deletions

View File

@ -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();
}

View File

@ -827,9 +827,3 @@ TargetInfo* TargetInfo::CreateTargetInfo(const std::string* TriplesStart,
return TI;
}
TargetInfo::~TargetInfo() {
delete PrimaryTarget;
for (unsigned i = 0; i < SecondaryTargets.size(); ++i)
delete SecondaryTargets[i];
}