Undefined symbol when calling recalculate method on DominatorTreeBase

Hi,

I’m working on moving a llvm pass from llvm 2.8 to llvm 3.1, and I’m getting this runtime error:

opt: symbol lookup error: /…/llvm/Release+Asserts/lib/InstrLLVM_VM_multi.so: undefined symbol: _ZN4llvm17DominatorTreeBaseINS_10BasicBlockEE5resetEv

The error happens when calling the next function:


    void rebuildDT(DominatorTree* DT, Function *parFunc) {
        DT->getBase().recalculate(*parFunc);
    }

All the code executes normally until the first call to this function, when the recalculate method calls the protected method reset.

Any ideas on how to solve this problem ?

Thanks,

Juan