diff options
author | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
commit | 09f162ca6a10446d6377b957f3a58ac92ce38306 (patch) | |
tree | b41e816449956582e447ab616707e1afbf1a88fe /llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp | |
parent | a612049dd849d1e659eeaeefbcf82147af7f669f (diff) | |
download | bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.tar.gz bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.zip |
Do not use typeinfo to identify pass in pass manager.
llvm-svn: 36632
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp index fb7268e57b9..a44899e1b91 100644 --- a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp @@ -32,9 +32,13 @@ using namespace llvm; namespace { class VISIBILITY_HIDDEN FunctionProfiler : public RSProfilers_std { + public: + static const int ID; bool runOnModule(Module &M); }; + const int FunctionProfiler::ID = 0; + RegisterPass<FunctionProfiler> X("insert-function-profiling", "Insert instrumentation for function profiling"); RegisterAnalysisGroup<RSProfilers> XG(X); @@ -79,8 +83,11 @@ bool FunctionProfiler::runOnModule(Module &M) { namespace { class BlockProfiler : public RSProfilers_std { bool runOnModule(Module &M); + public: + static const int ID; }; + const int BlockProfiler::ID = 0; RegisterPass<BlockProfiler> Y("insert-block-profiling", "Insert instrumentation for block profiling"); RegisterAnalysisGroup<RSProfilers> YG(Y); |