[llvm] r256374 - [FunctionImport] Move pass into anonymous namespace.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 24 02:03:35 PST 2015
Author: d0k
Date: Thu Dec 24 04:03:35 2015
New Revision: 256374
URL: http://llvm.org/viewvc/llvm-project?rev=256374&view=rev
Log:
[FunctionImport] Move pass into anonymous namespace.
No functional change.
Modified:
llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=256374&r1=256373&r2=256374&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Thu Dec 24 04:03:35 2015
@@ -371,6 +371,7 @@ getFunctionIndexForFile(StringRef Path,
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",
More information about the llvm-commits
mailing list