[modules] Try harder to stop DebugInfo/PDB/DIA being built if not available.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 14 Feb 2015 05:54:56 +0000 (05:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 14 Feb 2015 05:54:56 +0000 (05:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229243 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/module.modulemap

index 8f80c023f776a7fab5b87f4a4106a2b011be7edb..5a2a54cd80dab116171b7cfaeeaaadf7155ff99b 100644 (file)
@@ -53,10 +53,23 @@ module LLVM_DebugInfo_PDB {
 
   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.
+  //
+  // FIXME: There should be a better way to specify this.
+  exclude header "DebugInfo/PDB/DIADataStream.h"
+  exclude header "DebugInfo/PDB/DIAEnumDebugStreams.h"
+  exclude header "DebugInfo/PDB/DIAEnumLineNumbers.h"
+  exclude header "DebugInfo/PDB/DIAEnumSourceFiles.h"
+  exclude header "DebugInfo/PDB/DIAEnumSymbols.h"
+  exclude header "DebugInfo/PDB/DIALineNumber.h"
+  exclude header "DebugInfo/PDB/DIARawSymbol.h"
+  exclude header "DebugInfo/PDB/DIASession.h"
+  exclude header "DebugInfo/PDB/DIASourceFile.h"
+  exclude header "DebugInfo/PDB/DIASupport.h"
 }
 
-// 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