Clean up the use of static and anonymous namespaces. This turned up
[oota-llvm.git] / lib / Transforms / Utils / LowerInvoke.cpp
index 3d356b78aeea4fb7478e3d6ffb60f1e3bb40f0c9..0530e52173d0a270a373fec8b1bba4c1ddd51cdb 100644 (file)
@@ -98,12 +98,12 @@ namespace {
                                 AllocaInst *InvokeNum, SwitchInst *CatchSwitch);
     bool insertExpensiveEHSupport(Function &F);
   };
-
-  char LowerInvoke::ID = 0;
-  RegisterPass<LowerInvoke>
-  X("lowerinvoke", "Lower invoke and unwind, for unwindless code generators");
 }
 
+char LowerInvoke::ID = 0;
+static RegisterPass<LowerInvoke>
+X("lowerinvoke", "Lower invoke and unwind, for unwindless code generators");
+
 const PassInfo *llvm::LowerInvokePassID = X.getPassInfo();
 
 // Public Interface To the LowerInvoke pass.