Make the pass registration static.
authorOwen Anderson <resistor@mac.com>
Tue, 10 Jul 2007 20:20:19 +0000 (20:20 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Jul 2007 20:20:19 +0000 (20:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38508 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVNPRE.cpp

index 96870e3fdf2096ddd5ba9f80350b86de2f41f326..e625fc224be64fca965d84de918ecf076c82b9f1 100644 (file)
@@ -680,8 +680,8 @@ namespace {
 // createGVNPREPass - The public interface to this file...
 FunctionPass *llvm::createGVNPREPass() { return new GVNPRE(); }
 
-RegisterPass<GVNPRE> X("gvnpre",
-                       "Global Value Numbering/Partial Redundancy Elimination");
+static RegisterPass<GVNPRE> X("gvnpre",
+                              "Global Value Numbering/Partial Redundancy Elimination");
 
 
 STATISTIC(NumInsertedVals, "Number of values inserted");