[FunctionImport] Move pass into anonymous namespace.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 24 Dec 2015 10:03:35 +0000 (10:03 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 24 Dec 2015 10:03:35 +0000 (10:03 +0000)
No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256374 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionImport.cpp

index 639f15a..d8b677b 100644 (file)
@@ -371,6 +371,7 @@ getFunctionIndexForFile(StringRef Path, std::string &Error,
   return (*ObjOrErr)->takeIndex();
 }
 
+namespace {
 /// Pass that performs cross-module function import provided a summary file.
 class FunctionImportPass : public ModulePass {
   /// Optional function summary index to use for importing, otherwise
@@ -417,6 +418,7 @@ public:
     return false;
   }
 };
+} // anonymous namespace
 
 char FunctionImportPass::ID = 0;
 INITIALIZE_PASS_BEGIN(FunctionImportPass, "function-import",