From 845af6c46d52688058890fba3756b191694bc607 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 14 Feb 2015 00:47:20 +0000 Subject: [PATCH] [modules] Split off a separate module for DebugInfo/PDB/DIA so that its headers don't get included on systems where the DIA SDK is unavailable. llvm-svn: 229200 --- llvm/include/llvm/module.modulemap | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/llvm/include/llvm/module.modulemap b/llvm/include/llvm/module.modulemap index d005358..8f80c02 100644 --- a/llvm/include/llvm/module.modulemap +++ b/llvm/include/llvm/module.modulemap @@ -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 -- 2.7.4