aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-31 20:10:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-31 20:10:05 +0000
commit64ffc1472ef2a67725101b8b0b64c84ec4a4a148 (patch)
tree86cf4dabc7a38fd48b2bb1ab2562f496f84f501b
parent3244780a0fb49898f1ffd1982135c38f28789170 (diff)
Add two FIXMEs
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68138 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/clang-cc/clang-cc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp
index 072924bdeb..1a114a637e 100644
--- a/tools/clang-cc/clang-cc.cpp
+++ b/tools/clang-cc/clang-cc.cpp
@@ -723,6 +723,8 @@ MacOSVersionMin("mmacosx-version-min",
// If -mmacosx-version-min=10.3.9 is specified, change the triple from being
// something like powerpc-apple-darwin9 to powerpc-apple-darwin7
+
+// FIXME: We should have the driver do this instead.
static void HandleMacOSVersionMin(std::string &Triple) {
std::string::size_type DarwinDashIdx = Triple.find("-darwin");
if (DarwinDashIdx == std::string::npos) {
@@ -781,6 +783,8 @@ static std::string CreateTargetTriple() {
// If -arch foo was specified, remove the architecture from the triple we have
// so far and replace it with the specified one.
+
+ // FIXME: -arch should be removed, the driver should handle this.
if (!Arch.empty()) {
// Decompose the base triple into "arch" and suffix.
std::string::size_type FirstDashIdx = Triple.find('-');