We upgraded the code in Codegen_LLVM.cpp to use the 'modern' PassManager in LLVM quite a while ago, but there is still code in LLVM_Output.cpp and Codegen_PTX_Dev.cpp using the 'legacy' version. We should really upgrade it at some point (since presumably LLVM will remove it at some point and then we'll have to do it in a hurry).
We upgraded the code in Codegen_LLVM.cpp to use the 'modern' PassManager in LLVM quite a while ago, but there is still code in LLVM_Output.cpp and Codegen_PTX_Dev.cpp using the 'legacy' version. We should really upgrade it at some point (since presumably LLVM will remove it at some point and then we'll have to do it in a hurry).