[modules] Add include/llvm/IR/DebugInfoFlags.def to the textual headers list.
[oota-llvm.git] / include / llvm / module.modulemap
1 module LLVM_Analysis {
2   requires cplusplus
3   umbrella "Analysis"
4   module * { export * }
5   exclude header "Analysis/BlockFrequencyInfoImpl.h"
6 }
7
8 module LLVM_AsmParser { requires cplusplus umbrella "AsmParser" module * { export * } }
9
10 // A module covering CodeGen/ and Target/. These are intertwined
11 // and codependent, and thus notionally form a single module.
12 module LLVM_Backend {
13   requires cplusplus
14
15   module CodeGen {
16     umbrella "CodeGen"
17     module * { export * }
18
19     // FIXME: Why is this excluded?
20     exclude header "CodeGen/MachineValueType.h"
21
22     // Exclude these; they're intended to be included into only a single
23     // translation unit (or none) and aren't part of this module.
24     exclude header "CodeGen/CommandFlags.h"
25     exclude header "CodeGen/LinkAllAsmWriterComponents.h"
26     exclude header "CodeGen/LinkAllCodegenComponents.h"
27   }
28
29   module Target {
30     umbrella "Target"
31     module * { export * }
32   }
33
34   // FIXME: Where should this go?
35   module Analysis_BlockFrequencyInfoImpl {
36     header "Analysis/BlockFrequencyInfoImpl.h"
37     export *
38   }
39 }
40
41 module LLVM_Bitcode { requires cplusplus umbrella "Bitcode" module * { export * } }
42 module LLVM_Config { requires cplusplus umbrella "Config" module * { export * } }
43
44 module LLVM_DebugInfo_DWARF {
45   requires cplusplus
46
47   umbrella "DebugInfo/DWARF"
48   module * { export * }
49 }
50
51 module LLVM_DebugInfo_PDB {
52   requires cplusplus
53
54   umbrella "DebugInfo/PDB"
55   module * { export * }
56
57   // Separate out this subdirectory; it's an optional component that depends on
58   // a separate library which might not be available.
59   //
60   // FIXME: There should be a better way to specify this.
61   exclude header "DebugInfo/PDB/DIA/DIADataStream.h"
62   exclude header "DebugInfo/PDB/DIA/DIAEnumDebugStreams.h"
63   exclude header "DebugInfo/PDB/DIA/DIAEnumLineNumbers.h"
64   exclude header "DebugInfo/PDB/DIA/DIAEnumSourceFiles.h"
65   exclude header "DebugInfo/PDB/DIA/DIAEnumSymbols.h"
66   exclude header "DebugInfo/PDB/DIA/DIALineNumber.h"
67   exclude header "DebugInfo/PDB/DIA/DIARawSymbol.h"
68   exclude header "DebugInfo/PDB/DIA/DIASession.h"
69   exclude header "DebugInfo/PDB/DIA/DIASourceFile.h"
70   exclude header "DebugInfo/PDB/DIA/DIASupport.h"
71 }
72
73 module LLVM_DebugInfo_PDB_DIA {
74   requires cplusplus
75
76   umbrella "DebugInfo/PDB/DIA"
77   module * { export * }
78 }
79
80 module LLVM_ExecutionEngine {
81   requires cplusplus
82
83   umbrella "ExecutionEngine"
84   module * { export * }
85
86   // Exclude this; it's an optional component of the ExecutionEngine.
87   exclude header "ExecutionEngine/OProfileWrapper.h"
88
89   // Exclude these; they're intended to be included into only a single
90   // translation unit (or none) and aren't part of this module.
91   exclude header "ExecutionEngine/JIT.h"
92   exclude header "ExecutionEngine/MCJIT.h"
93   exclude header "ExecutionEngine/Interpreter.h"
94   exclude header "ExecutionEngine/OrcMCJITReplacement.h"
95 }
96
97 module LLVM_IR {
98   requires cplusplus
99
100   // FIXME: Is this the right place for these?
101   module Pass { header "Pass.h" export * }
102   module PassSupport { header "PassSupport.h" export * }
103   module PassAnalysisSupport { header "PassAnalysisSupport.h" export * }
104   module PassRegistry { header "PassRegistry.h" export * }
105   module InitializePasses { header "InitializePasses.h" export * }
106
107   umbrella "IR"
108   module * { export * }
109
110   // These are intended for (repeated) textual inclusion.
111   textual header "IR/DebugInfoFlags.def"
112   textual header "IR/Instruction.def"
113   textual header "IR/Metadata.def"
114 }
115
116 module LLVM_IRReader { requires cplusplus umbrella "IRReader" module * { export * } }
117 module LLVM_LineEditor { requires cplusplus umbrella "LineEditor" module * { export * } }
118 module LLVM_LTO { requires cplusplus umbrella "LTO" module * { export * } }
119
120 module LLVM_MC {
121   requires cplusplus
122
123   // FIXME: Mislayered?
124   module Support_TargetRegistry {
125     header "Support/TargetRegistry.h"
126     export *
127   }
128
129   umbrella "MC"
130   module * { export * }
131
132   // Exclude this; it's fundamentally non-modular.
133   exclude header "MC/MCTargetOptionsCommandFlags.h"
134 }
135
136 module LLVM_Object {
137   requires cplusplus
138   umbrella "Object"
139   module * { export * }
140 }
141
142 module LLVM_Option { requires cplusplus umbrella "Option" module * { export * } }
143 module LLVM_TableGen { requires cplusplus umbrella "TableGen" module * { export * } }
144
145 module LLVM_Transforms {
146   requires cplusplus
147   umbrella "Transforms"
148   module * { export * }
149
150   // FIXME: Excluded because it does bad things with the legacy pass manager.
151   exclude header "Transforms/IPO/PassManagerBuilder.h"
152 }
153
154 // A module covering ADT/ and Support/. These are intertwined and
155 // codependent, and notionally form a single module.
156 module LLVM_Utils {
157   module ADT {
158     requires cplusplus
159
160     umbrella "ADT"
161     module * { export * }
162   }
163
164   module Support {
165     requires cplusplus
166
167     umbrella "Support"
168     module * { export * }
169
170     // Exclude this; it's only included on Solaris.
171     exclude header "Support/Solaris.h"
172
173     // Exclude this; it's only included on AIX and fundamentally non-modular.
174     exclude header "Support/AIXDataTypesFix.h"
175
176     // Exclude this; it's fundamentally non-modular.
177     exclude header "Support/PluginLoader.h"
178
179     // Exclude this; it's a weirdly-factored part of llvm-gcov and conflicts
180     // with the Analysis module (which also defines an llvm::GCOVOptions).
181     exclude header "Support/GCOV.h"
182
183     // FIXME: Mislayered?
184     exclude header "Support/TargetRegistry.h"
185
186     // These are intended for textual inclusion.
187     textual header "Support/Dwarf.def"
188     textual header "Support/ELFRelocs/AArch64.def"
189     textual header "Support/ELFRelocs/ARM.def"
190     textual header "Support/ELFRelocs/Hexagon.def"
191     textual header "Support/ELFRelocs/i386.def"
192     textual header "Support/ELFRelocs/Mips.def"
193     textual header "Support/ELFRelocs/PowerPC64.def"
194     textual header "Support/ELFRelocs/PowerPC.def"
195     textual header "Support/ELFRelocs/Sparc.def"
196     textual header "Support/ELFRelocs/SystemZ.def"
197     textual header "Support/ELFRelocs/x86_64.def"
198   }
199 }
200
201 module LLVM_CodeGen_MachineValueType {
202   requires cplusplus
203   header "CodeGen/MachineValueType.h"
204   export *
205 }
206
207 // This is used for a $src == $build compilation. Otherwise we use
208 // LLVM_Support_DataTypes_Build, defined in a module map that is
209 // copied into the build area.
210 module LLVM_Support_DataTypes_Src {
211   header "llvm/Support/DataTypes.h"
212   export *
213 }