diff options
Diffstat (limited to 'lib/Transforms/IPO/Internalize.cpp')
-rw-r--r-- | lib/Transforms/IPO/Internalize.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index c6b75b1be9..5e436aa215 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -39,7 +39,7 @@ namespace { cl::desc("A list of symbol names to preserve"), cl::CommaSeparated); - class InternalizePass : public Pass { + class InternalizePass : public ModulePass { std::set<std::string> ExternalNames; public: InternalizePass() { @@ -65,7 +65,7 @@ namespace { } } - virtual bool run(Module &M) { + virtual bool runOnModule(Module &M) { // If no list or file of symbols was specified, check to see if there is a // "main" symbol defined in the module. If so, use it, otherwise do not // internalize the module, it must be a library or something. @@ -117,6 +117,6 @@ namespace { RegisterOpt<InternalizePass> X("internalize", "Internalize Global Symbols"); } // end anonymous namespace -Pass *llvm::createInternalizePass() { +ModulePass *llvm::createInternalizePass() { return new InternalizePass(); } |