Move Pass into anonymous namespace. NFC.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 May 2015 16:16:35 +0000 (16:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 May 2015 16:16:35 +0000 (16:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SpeculativeExecution.cpp

index 0e51019cccea8e0287412aa386eb326ba55ebcc7..d32e109444284ab4ef41a7f10e5be9731d086005 100644 (file)
@@ -74,6 +74,7 @@ static cl::opt<unsigned> SpecExecMaxNotHoisted(
              "number of instructions that would not be speculatively executed "
              "exceeds this limit."));
 
+namespace {
 class SpeculativeExecution : public FunctionPass {
  public:
   static char ID;
@@ -88,6 +89,7 @@ class SpeculativeExecution : public FunctionPass {
 
   const TargetTransformInfo *TTI = nullptr;
 };
+} // namespace
 
 char SpeculativeExecution::ID = 0;
 INITIALIZE_PASS_BEGIN(SpeculativeExecution, "speculative-execution",