[cfe-commits] r56941 - /cfe/trunk/Driver/clang.cpp
Daniel Dunbar
daniel at zuster.org
Wed Oct 1 17:26:24 PDT 2008
Author: ddunbar
Date: Wed Oct 1 19:26:24 2008
New Revision: 56941
URL: http://llvm.org/viewvc/llvm-project?rev=56941&view=rev
Log:
Drop code to validate OS part of target triple on darwin, too fragile.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=56941&r1=56940&r2=56941&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Oct 1 19:26:24 2008
@@ -628,17 +628,6 @@
}
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);
More information about the cfe-commits
mailing list