From e9fd02be0789bf2d3c281f9517cd5f202cb0e0c6 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 16 May 2015 16:16:35 +0000 Subject: [PATCH] Move Pass into anonymous namespace. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237526 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SpeculativeExecution.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Scalar/SpeculativeExecution.cpp b/lib/Transforms/Scalar/SpeculativeExecution.cpp index 0e51019ccce..d32e1094442 100644 --- a/lib/Transforms/Scalar/SpeculativeExecution.cpp +++ b/lib/Transforms/Scalar/SpeculativeExecution.cpp @@ -74,6 +74,7 @@ static cl::opt 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", -- 2.34.1