<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello everyone,<br>
    <br>
    I am developing a bunch of LLVM Analysis passes and I want to bundle
    them in a single library. I have been following the guide from [1].<br>
    <br>
    Lets say my analyses are implemented in Pass_A.cpp and Pass_B.cpp.
    Both of them contain the `RegisterPass' directive. The
    CMakeLists.txt file contains<br>
    <blockquote>add_llvm_loadable_module(LLVMSomeName Pass_A.cpp
      Pass_B.cpp)<br>
    </blockquote>
    <br>
    Building the library works, and I can call<br>
    <blockquote>opt -load .../lib/libLLVMSomeName.so<br>
    </blockquote>
    However, only Pass_A is available. The flag for Pass_B is not
    recognized.<br>
    Note that Pass_B depends on Pass_A, i.e. its `getAnalysisUsage' adds
    the respective dependence, and `getAnalysis<Pass_A>()' is
    called.<br>
    <br>
    I am looking forward to your advice.<br>
    <br>
    Thanks & regards,<br>
    Immanuel<br>
    <br>
    <br>
    [1] <a class="moz-txt-link-freetext"
href="http://llvm.org/docs/CMake.html#developing-llvm-passes-out-of-source">http://llvm.org/docs/CMake.html#developing-llvm-passes-out-of-source</a><br>
  </body>
</html>