summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoadValueNumbering.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-05-01 21:15:47 +0000
committerDevang Patel <dpatel@apple.com>2007-05-01 21:15:47 +0000
commit09f162ca6a10446d6377b957f3a58ac92ce38306 (patch)
treeb41e816449956582e447ab616707e1afbf1a88fe /llvm/lib/Analysis/LoadValueNumbering.cpp
parenta612049dd849d1e659eeaeefbcf82147af7f669f (diff)
downloadbcm5719-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/Analysis/LoadValueNumbering.cpp')
-rw-r--r--llvm/lib/Analysis/LoadValueNumbering.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LoadValueNumbering.cpp b/llvm/lib/Analysis/LoadValueNumbering.cpp
index 16687b04194..fdb5545c2bb 100644
--- a/llvm/lib/Analysis/LoadValueNumbering.cpp
+++ b/llvm/lib/Analysis/LoadValueNumbering.cpp
@@ -40,6 +40,8 @@ using namespace llvm;
namespace {
// FIXME: This should not be a FunctionPass.
struct VISIBILITY_HIDDEN LoadVN : public FunctionPass, public ValueNumbering {
+ static const int ID; // Class identification, replacement for typeinfo
+ LoadVN() : FunctionPass((intptr_t)&ID) {}
/// Pass Implementation stuff. This doesn't do any analysis.
///
@@ -81,6 +83,7 @@ namespace {
std::vector<Value*> &RetVals) const;
};
+ const int LoadVN::ID = 0;
// Register this pass...
RegisterPass<LoadVN> X("load-vn", "Load Value Numbering");
OpenPOWER on IntegriCloud