Drop code to validate OS part of target triple on darwin, too fragile.

llvm-svn: 56941
This commit is contained in:
Daniel Dunbar 2008-10-02 00:26:24 +00:00
parent dfc507d2b5
commit 4dd154663e
1 changed files with 0 additions and 11 deletions

View File

@ -628,17 +628,6 @@ static void HandleMacOSVersionMin(std::string &Triple) {
}
unsigned DarwinNumIdx = DarwinDashIdx + strlen("-darwin");
// Validate that there is a number after the "-darwin" and nothing else.
bool IsValidDarwinNumber = Triple.size() != DarwinNumIdx;
for (unsigned i = DarwinNumIdx; i != Triple.size(); ++i)
if ((Triple[i] < '0' || Triple[i] > '9') && Triple[i] != '.')
IsValidDarwinNumber = false;
if (!IsValidDarwinNumber) {
fprintf(stderr, "invalid darwin target triple '%s' expected number\n",
Triple.c_str());
exit(1);
}
// Remove the number.
Triple.resize(DarwinNumIdx);