зеркало из https://github.com/microsoft/clang-1.git
move this into the right file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
330dddd194
Коммит
544f043d76
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче