r221290 - Make helper function static. NFC.

Benjamin Kramer benny.kra at googlemail.com
Tue Nov 4 12:26:02 PST 2014


Author: d0k
Date: Tue Nov  4 14:26:01 2014
New Revision: 221290

URL: http://llvm.org/viewvc/llvm-project?rev=221290&view=rev
Log:
Make helper function static. NFC.

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=221290&r1=221289&r2=221290&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Tue Nov  4 14:26:01 2014
@@ -1847,7 +1847,8 @@ Driver::generatePrefixedToolNames(const
   Names.push_back(Tool);
 }
 
-bool ScanDirForExecutable(SmallString<128> &Dir, ArrayRef<std::string> Names) {
+static bool ScanDirForExecutable(SmallString<128> &Dir,
+                                 ArrayRef<std::string> Names) {
   for (const auto &Name : Names) {
     llvm::sys::path::append(Dir, Name);
     if (llvm::sys::fs::can_execute(Twine(Dir)))





More information about the cfe-commits mailing list