[modules] Split off a separate module for DebugInfo/PDB/DIA so that its headers
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 14 Feb 2015 00:47:20 +0000 (00:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 14 Feb 2015 00:47:20 +0000 (00:47 +0000)
don't get included on systems where the DIA SDK is unavailable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229200 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/module.modulemap

index d00535843578eaa77143cb639a01631c3bbd1583..8f80c023f776a7fab5b87f4a4106a2b011be7edb 100644 (file)
@@ -40,7 +40,30 @@ module LLVM_Backend {
 
 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
-module LLVM_DebugInfo { requires cplusplus umbrella "DebugInfo" module * { export * } }
+
+module LLVM_DebugInfo_DWARF {
+  requires cplusplus
+
+  umbrella "DebugInfo/DWARF"
+  module * { export * }
+}
+
+module LLVM_DebugInfo_PDB {
+  requires cplusplus
+
+  umbrella "DebugInfo/PDB"
+  module * { export * }
+}
+
+// Separate out this subdirectory; it's an optional component that depends on
+// a separate library which might not be available.
+module LLVM_DebugInfo_PDB_DIA {
+  requires cplusplus
+
+  umbrella "DebugInfo/PDB/DIA"
+  module * { export * }
+}
+
 module LLVM_ExecutionEngine {
   requires cplusplus