[llvm] r350346 - Unbreak the modules build by splitting Target out into its own top-level module

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 3 11:24:37 PST 2019


Author: adrian
Date: Thu Jan  3 11:24:37 2019
New Revision: 350346

URL: http://llvm.org/viewvc/llvm-project?rev=350346&view=rev
Log:
Unbreak the modules build by splitting Target out into its own top-level module

Modified:
    llvm/trunk/include/llvm/module.modulemap

Modified: llvm/trunk/include/llvm/module.modulemap
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/module.modulemap?rev=350346&r1=350345&r2=350346&view=diff
==============================================================================
--- llvm/trunk/include/llvm/module.modulemap (original)
+++ llvm/trunk/include/llvm/module.modulemap Thu Jan  3 11:24:37 2019
@@ -27,11 +27,13 @@ module LLVM_Backend {
     textual header "CodeGen/CommandFlags.inc"
     textual header "CodeGen/DIEValue.def"
   }
+}
 
-  module Target {
-    umbrella "Target"
-    module * { export * }
-  }
+// FIXME: Make this as a submodule of LLVM_Backend again.
+//        Doing so causes a linker error in clang-format.
+module LLVM_Backend_Target {
+  umbrella "Target"
+  module * { export * }
 }
 
 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }




More information about the llvm-commits mailing list