summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-05-16 16:16:35 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-05-16 16:16:35 +0000
commitd9f06c8b8773dbd968bdcd6ba4da750fcaa5436c (patch)
tree04210b98817f689f54302ef814e068642bf72082 /llvm/lib/Transforms/Scalar
parentb4569fb51f8aa959ab6fb1376dc212b8a7b106bc (diff)
downloadbcm5719-llvm-d9f06c8b8773dbd968bdcd6ba4da750fcaa5436c.tar.gz
bcm5719-llvm-d9f06c8b8773dbd968bdcd6ba4da750fcaa5436c.zip
Move Pass into anonymous namespace. NFC.
llvm-svn: 237526
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp b/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
index 0e51019ccce..d32e1094442 100644
--- a/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
+++ b/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
@@ -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",
OpenPOWER on IntegriCloud