Index: include/llvm/module.modulemap =================================================================== --- include/llvm/module.modulemap +++ include/llvm/module.modulemap @@ -101,6 +101,20 @@ exclude header "ExecutionEngine/OrcMCJITReplacement.h" } +module LLVM_Pass { + module Pass { + // PassSupport.h and PassAnalysisSupport.h are made available only through + // Pass.h. + header "Pass.h" + header "PassSupport.h" + header "PassAnalysisSupport.h" + export * + } + + module PassRegistry { header "PassRegistry.h" export * } + module InitializePasses { header "InitializePasses.h" export * } +} + module LLVM_IR { requires cplusplus