<div dir="ltr"><span style="font-size:12.8000001907349px">Hello all,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I have written one pass to collect information about specific calls in an llvm IR file and am not trying to reference the results from the first pass in a second pass.  </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">What is the correct way to reference an additional custom pass in LLVM?  At the moment the project is set up under the lib/Transforms directory in source and has the current layout:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thresholds/</div><div style="font-size:12.8000001907349px">    include/</div><div style="font-size:12.8000001907349px">        Thresholds.h</div><div style="font-size:12.8000001907349px">    Pass1.cpp</div><div style="font-size:12.8000001907349px">    Pass2.cpp</div><div style="font-size:12.8000001907349px">    Makefile</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Both of the pass classes are defined in the header file.  In pass two I have declared that it requires Pass1 using: AU.addRequired<Pass1>() and get the result using  </div><div style="font-size:12.8000001907349px">getAnalysis<Pass1>().getParamPtrs();  </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The module compiles correctly, but when trying to load it using opt I get an error:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Error opening 'Thresholds.dylib': dlopen(Thresholds.dylib, 9): Symbol not found: __ZN12_GLOBAL__N_115ParamCallFinder2ID<br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">What is the correct way to reference another custom written pass in LLVM?  Is is possible to do it in this manner or am I completly wrong in my approach?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks!</div></div>