diff options
author | dim <dim@FreeBSD.org> | 2013-12-10 07:25:25 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-10 07:25:25 +0000 |
commit | f972f6b92d78f3f4132fa281693ec042a0000337 (patch) | |
tree | 14ce9c1bfa582b7a064a137364d241814135f225 /contrib/llvm/tools/clang/lib/Driver/ToolChains.h | |
parent | fca381ba6d6ae08a30c773d35a525952279845ba (diff) | |
download | FreeBSD-src-f972f6b92d78f3f4132fa281693ec042a0000337.zip FreeBSD-src-f972f6b92d78f3f4132fa281693ec042a0000337.tar.gz |
MFC r259053:
Pull in r196590 from upstream clang trunk (by rdivacky):
Move the body of GCCInstallationDetector ctor into an init() function
and call it from its only user. The linux toolchain. This saves quite
a lot of directory searching on other platforms.
See http://docs.freebsd.org/cgi/mid.cgi?51E6FAF5.3080802 for the
original discussion. With this fix, the search for gcc installations is
completely eliminated on FreeBSD.
Reported by: Kurt Lidl <lidl@pix.net>
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Driver/ToolChains.h')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Driver/ToolChains.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm/tools/clang/lib/Driver/ToolChains.h b/contrib/llvm/tools/clang/lib/Driver/ToolChains.h index 2b140c1..50145e7 100644 --- a/contrib/llvm/tools/clang/lib/Driver/ToolChains.h +++ b/contrib/llvm/tools/clang/lib/Driver/ToolChains.h @@ -78,7 +78,8 @@ protected: GCCVersion Version; public: - GCCInstallationDetector(const Driver &D, const llvm::Triple &TargetTriple, + GCCInstallationDetector() : IsValid(false) {} + void init(const Driver &D, const llvm::Triple &TargetTriple, const ArgList &Args); /// \brief Check whether we detected a valid GCC install. |