diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2008-10-02 00:26:24 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-02 00:26:24 +0000 |
| commit | 4dd154663e37643a2e63e197490da6b03f4b33df (patch) | |
| tree | e290113e13780efdc5b4038ceeef143b2b046cd5 /clang/Driver/clang.cpp | |
| parent | dfc507d2b553cdf8e4a7c95bfd61dcc4cb88b86d (diff) | |
| download | bcm5719-llvm-4dd154663e37643a2e63e197490da6b03f4b33df.tar.gz bcm5719-llvm-4dd154663e37643a2e63e197490da6b03f4b33df.zip | |
Drop code to validate OS part of target triple on darwin, too fragile.
llvm-svn: 56941
Diffstat (limited to 'clang/Driver/clang.cpp')
| -rw-r--r-- | clang/Driver/clang.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 8cfdd941b8f..3ca5493d2cb 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -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); |

