parent
e516aa1127
commit
43c103ab1b
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue