Skip to content

Commit 8d15e22

Browse files
committed
Fix modules build after introduction of PassSupport.h include check
D78815 added a check that ensures that PassSupport.h and PassAnalysisSupport.h aren't included directly. However, as compiling this header into a module will try to parse it with a clean preprocessor state, this check is also triggered there. The check seems to make sense and it seems that compiling this header into its own module is a mistake, so this patch makes those two headers textual in the modulemap.
1 parent d9e174d commit 8d15e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/module.modulemap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ module LLVM_Pass {
212212
// PassSupport.h and PassAnalysisSupport.h are made available only through
213213
// Pass.h.
214214
header "Pass.h"
215-
header "PassSupport.h"
216-
header "PassAnalysisSupport.h"
215+
textual header "PassSupport.h"
216+
textual header "PassAnalysisSupport.h"
217217
export *
218218
}
219219

0 commit comments

Comments
 (0)