[llvm] 0ebf904 - [modules] Put Frontend/OpenMP headers into a Clang module to fix the module build

Raphael Isemann via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 00:55:25 PST 2021


Author: Raphael Isemann
Date: 2021-02-08T09:54:45+01:00
New Revision: 0ebf904bafce983fd2018f2b5b8288dd5ded0cdb

URL: https://github.com/llvm/llvm-project/commit/0ebf904bafce983fd2018f2b5b8288dd5ded0cdb
DIFF: https://github.com/llvm/llvm-project/commit/0ebf904bafce983fd2018f2b5b8288dd5ded0cdb.diff

LOG: [modules] Put Frontend/OpenMP headers into a Clang module to fix the module build

These headers can be in a Clang module like the rest. This also fixes the
modules build that is currently struggling with these headers being textually
included in several other modules.

Added: 
    

Modified: 
    llvm/include/llvm/module.modulemap

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap
index a199f7f2d79a..f6bbbd09728a 100644
--- a/llvm/include/llvm/module.modulemap
+++ b/llvm/include/llvm/module.modulemap
@@ -204,6 +204,15 @@ module LLVM_FileCheck {
   module * { export * }
 }
 
+module LLVM_Frontend_OpenMP {
+  requires cplusplus
+
+  umbrella "Frontend/OpenMP"
+  module * { export * }
+
+  exclude header "Frontend/OpenMP/OMPKinds.def"
+}
+
 // Orc utilities that don't depend only on Support (not ExecutionEngine or
 // IR). This is a workaround for ExecutionEngine's broken layering, and will
 // be removed in the future.


        


More information about the llvm-commits mailing list