[llvm] r237526 - Move Pass into anonymous namespace. NFC.
Benjamin Kramer
benny.kra at GOOGLEMAIL.com
Sat May 16 09:16:35 PDT 2015
Author: d0k
Date: Sat May 16 11:16:35 2015
New Revision: 237526
URL: http://llvm.org/viewvc/llvm-project?rev=237526&view=rev
Log:
Move Pass into anonymous namespace. NFC.
Modified:
llvm/trunk/lib/Transforms/Scalar/SpeculativeExecution.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SpeculativeExecution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SpeculativeExecution.cpp?rev=237526&r1=237525&r2=237526&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SpeculativeExecution.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SpeculativeExecution.cpp Sat May 16 11:16:35 2015
@@ -74,6 +74,7 @@ static cl::opt<unsigned> SpecExecMaxNotH
"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 Func
const TargetTransformInfo *TTI = nullptr;
};
+} // namespace
char SpeculativeExecution::ID = 0;
INITIALIZE_PASS_BEGIN(SpeculativeExecution, "speculative-execution",
More information about the llvm-commits
mailing list