I think this should probably be handled in void llvm::initializeCodeGen(PassRegistry &Registry) from CodeGen.cpp REPOSITORY rL LLVM http://reviews.llvm.org/D8788 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/