summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/HostInfo.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-27 00:56:25 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-27 00:56:25 +0000
commit3b8e50d0edcbc6b79f7ee3b6d1943a34375302c9 (patch)
tree9d54f05ad8b27ea3960e228f822c0be10a9f5858 /clang/lib/Driver/HostInfo.cpp
parent477d9274bbe92edb771fd96f1fc79a4c937dee47 (diff)
downloadbcm5719-llvm-3b8e50d0edcbc6b79f7ee3b6d1943a34375302c9.tar.gz
bcm5719-llvm-3b8e50d0edcbc6b79f7ee3b6d1943a34375302c9.zip
Driver/Darwin: Track target platform more explicitly in tool chain, eventually
this should just be part of the tool chain itself once we have eliminated argument translation. llvm-svn: 94635
Diffstat (limited to 'clang/lib/Driver/HostInfo.cpp')
-rw-r--r--clang/lib/Driver/HostInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Driver/HostInfo.cpp b/clang/lib/Driver/HostInfo.cpp
index ed73b17d75f..01fd32d1db2 100644
--- a/clang/lib/Driver/HostInfo.cpp
+++ b/clang/lib/Driver/HostInfo.cpp
@@ -106,7 +106,7 @@ ToolChain *DarwinHostInfo::CreateToolChain(const ArgList &Args,
if (Arg *A = Args.getLastArg(options::OPT_arch)) {
// The gcc driver behavior with multiple -arch flags wasn't consistent for
// things which rely on a default architecture. We just use the last -arch
- // to find the default tool chain (assuming it is valid..
+ // to find the default tool chain (assuming it is valid).
Arch = llvm::Triple::getArchTypeForDarwinArchName(A->getValue(Args));
// If it was invalid just use the host, we will reject this command line
@@ -159,8 +159,7 @@ ToolChain *DarwinHostInfo::CreateToolChain(const ArgList &Args,
// Unknown Host Info
-/// UnknownHostInfo - Generic host information to use for unknown
-/// hosts.
+/// UnknownHostInfo - Generic host information to use for unknown hosts.
class UnknownHostInfo : public HostInfo {
/// Cache of tool chains we have created.
mutable llvm::StringMap<ToolChain*> ToolChains;
OpenPOWER on IntegriCloud