Index: include/llvm/module.modulemap =================================================================== --- include/llvm/module.modulemap +++ include/llvm/module.modulemap @@ -29,6 +29,10 @@ textual header "CodeGen/DIEValue.def" textual header "CodeGen/RuntimeLibcalls.def" textual header "CodeGen/TargetOpcodes.def" + + // This is needed by tablegen which can't pull in all of the dependecies of + // llvm/CodeGen since some of those headers are generated by tablegen. + textual header "CodeGen/TargetOpcodes.h" } module Target {