r291133 - [ToolChains] Use "static" instead of an anonymous namespace for a function. NFC
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 5 08:52:47 PST 2017
Author: jlebar
Date: Thu Jan 5 10:52:47 2017
New Revision: 291133
URL: http://llvm.org/viewvc/llvm-project?rev=291133&view=rev
Log:
[ToolChains] Use "static" instead of an anonymous namespace for a function. NFC
Modified:
cfe/trunk/lib/Driver/MinGWToolChain.cpp
Modified: cfe/trunk/lib/Driver/MinGWToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/MinGWToolChain.cpp?rev=291133&r1=291132&r2=291133&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/MinGWToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/MinGWToolChain.cpp Thu Jan 5 10:52:47 2017
@@ -20,10 +20,9 @@ using namespace clang::driver::toolchain
using namespace clang;
using namespace llvm::opt;
-namespace {
// Simplified from Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple.
-bool findGccVersion(StringRef LibDir, std::string &GccLibDir,
- std::string &Ver) {
+static bool findGccVersion(StringRef LibDir, std::string &GccLibDir,
+ std::string &Ver) {
Generic_GCC::GCCVersion Version = Generic_GCC::GCCVersion::Parse("0.0.0");
std::error_code EC;
for (llvm::sys::fs::directory_iterator LI(LibDir, EC), LE; !EC && LI != LE;
@@ -40,7 +39,6 @@ bool findGccVersion(StringRef LibDir, st
}
return Ver.size();
}
-}
void MinGW::findGccLibDir() {
llvm::SmallVector<llvm::SmallString<32>, 2> Archs;
More information about the cfe-commits
mailing list