X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FAnalysis%2FValueNumbering.cpp;h=bdb9422c238a5ed83809e755f3cae2762d830ab3;hb=04fa56932052f416ea911fe65615ebecbf154f6d;hp=963ccb90f3ea7cacb9c3680d9c21b77789556318;hpb=d7d83db5f22d05e5b14b6b1d838668222113c83a;p=oota-llvm.git diff --git a/lib/Analysis/ValueNumbering.cpp b/lib/Analysis/ValueNumbering.cpp index 963ccb90f3e..bdb9422c238 100644 --- a/lib/Analysis/ValueNumbering.cpp +++ b/lib/Analysis/ValueNumbering.cpp @@ -22,6 +22,7 @@ #include "llvm/Support/Compiler.h" using namespace llvm; +char ValueNumbering::ID = 0; // Register the ValueNumbering interface, providing a nice name to refer to. static RegisterAnalysisGroup X("Value Numbering"); @@ -51,6 +52,9 @@ namespace { /// struct VISIBILITY_HIDDEN BasicVN : public ImmutablePass, public ValueNumbering { + static char ID; // Class identification, replacement for typeinfo + BasicVN() : ImmutablePass((intptr_t)&ID) {} + /// getEqualNumberNodes - Return nodes with the same value number as the /// specified Value. This fills in the argument vector with any equal /// values. @@ -61,6 +65,7 @@ namespace { std::vector &RetVals) const; }; + char BasicVN::ID = 0; // Register this pass... RegisterPass X("basicvn", "Basic Value Numbering (default GVN impl)");