summaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-05-02 20:37:47 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-05-02 20:37:47 +0000
commitc718288f4939258a51ec5ae0c5be7b1a05eb6898 (patch)
tree780fb01eeeb530ffdc6a2066866b20194b25111e /lib/Transforms/Instrumentation
parentce3b46552a03f502e56fb3c4db82f3f92c09eff9 (diff)
downloadllvm-c718288f4939258a51ec5ae0c5be7b1a05eb6898.tar.gz
llvm-c718288f4939258a51ec5ae0c5be7b1a05eb6898.tar.bz2
llvm-c718288f4939258a51ec5ae0c5be7b1a05eb6898.tar.xz
Fix build error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r--lib/Transforms/Instrumentation/RSProfiling.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/RSProfiling.cpp b/lib/Transforms/Instrumentation/RSProfiling.cpp
index ad9a841cb0..321e3908e0 100644
--- a/lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -81,9 +81,7 @@ namespace {
}
};
- const int RSProfilers::ID = 0;
static RegisterAnalysisGroup<RSProfilers> A("Profiling passes");
- const int NullProfilerRS::ID = 0;
static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs",
"Measure profiling framework overhead");
static RegisterAnalysisGroup<RSProfilers, true> NPT(NP);
@@ -160,11 +158,14 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
};
- const int ProfilerRS::ID = 0;
RegisterPass<ProfilerRS> X("insert-rs-profiling-framework",
"Insert random sampling instrumentation framework");
}
+const int RSProfilers::ID = 0;
+const int NullProfilerRS::ID = 0;
+const int ProfilerRS::ID = 0;
+
//Local utilities
static void ReplacePhiPred(BasicBlock* btarget,
BasicBlock* bold, BasicBlock* bnew);