@@ -147,13 +147,6 @@ enum ActionKind {
147
147
148
148
// / The kind of a file that we've been handed as an input.
149
149
class InputKind {
150
- private:
151
- Language Lang;
152
- unsigned Fmt : 3 ;
153
- unsigned Preprocessed : 1 ;
154
- unsigned HeaderUnit : 3 ;
155
- unsigned IsHeader : 1 ;
156
-
157
150
public:
158
151
// / The input file format.
159
152
enum Format {
@@ -172,6 +165,18 @@ class InputKind {
172
165
HeaderUnit_Abs
173
166
};
174
167
168
+ private:
169
+ Language Lang;
170
+ LLVM_PREFERRED_TYPE (Format)
171
+ unsigned Fmt : 3 ;
172
+ LLVM_PREFERRED_TYPE (bool )
173
+ unsigned Preprocessed : 1 ;
174
+ LLVM_PREFERRED_TYPE (HeaderUnitKind)
175
+ unsigned HeaderUnit : 3 ;
176
+ LLVM_PREFERRED_TYPE (bool )
177
+ unsigned IsHeader : 1 ;
178
+
179
+ public:
175
180
constexpr InputKind (Language L = Language::Unknown, Format F = Source,
176
181
bool PP = false , HeaderUnitKind HU = HeaderUnit_None,
177
182
bool HD = false )
@@ -266,88 +271,116 @@ class FrontendInputFile {
266
271
class FrontendOptions {
267
272
public:
268
273
// / Disable memory freeing on exit.
274
+ LLVM_PREFERRED_TYPE (bool )
269
275
unsigned DisableFree : 1 ;
270
276
271
277
// / When generating PCH files, instruct the AST writer to create relocatable
272
278
// / PCH files.
279
+ LLVM_PREFERRED_TYPE (bool )
273
280
unsigned RelocatablePCH : 1 ;
274
281
275
282
// / Show the -help text.
283
+ LLVM_PREFERRED_TYPE (bool )
276
284
unsigned ShowHelp : 1 ;
277
285
278
286
// / Show frontend performance metrics and statistics.
287
+ LLVM_PREFERRED_TYPE (bool )
279
288
unsigned ShowStats : 1 ;
280
289
290
+ LLVM_PREFERRED_TYPE (bool )
281
291
unsigned AppendStats : 1 ;
282
292
283
293
// / print the supported cpus for the current target
294
+ LLVM_PREFERRED_TYPE (bool )
284
295
unsigned PrintSupportedCPUs : 1 ;
285
296
286
297
// / Print the supported extensions for the current target.
298
+ LLVM_PREFERRED_TYPE (bool )
287
299
unsigned PrintSupportedExtensions : 1 ;
288
300
289
301
// / Show the -version text.
302
+ LLVM_PREFERRED_TYPE (bool )
290
303
unsigned ShowVersion : 1 ;
291
304
292
305
// / Apply fixes even if there are unfixable errors.
306
+ LLVM_PREFERRED_TYPE (bool )
293
307
unsigned FixWhatYouCan : 1 ;
294
308
295
309
// / Apply fixes only for warnings.
310
+ LLVM_PREFERRED_TYPE (bool )
296
311
unsigned FixOnlyWarnings : 1 ;
297
312
298
313
// / Apply fixes and recompile.
314
+ LLVM_PREFERRED_TYPE (bool )
299
315
unsigned FixAndRecompile : 1 ;
300
316
301
317
// / Apply fixes to temporary files.
318
+ LLVM_PREFERRED_TYPE (bool )
302
319
unsigned FixToTemporaries : 1 ;
303
320
304
321
// / Emit ARC errors even if the migrator can fix them.
322
+ LLVM_PREFERRED_TYPE (bool )
305
323
unsigned ARCMTMigrateEmitARCErrors : 1 ;
306
324
307
325
// / Skip over function bodies to speed up parsing in cases you do not need
308
326
// / them (e.g. with code completion).
327
+ LLVM_PREFERRED_TYPE (bool )
309
328
unsigned SkipFunctionBodies : 1 ;
310
329
311
330
// / Whether we can use the global module index if available.
331
+ LLVM_PREFERRED_TYPE (bool )
312
332
unsigned UseGlobalModuleIndex : 1 ;
313
333
314
334
// / Whether we can generate the global module index if needed.
335
+ LLVM_PREFERRED_TYPE (bool )
315
336
unsigned GenerateGlobalModuleIndex : 1 ;
316
337
317
338
// / Whether we include declaration dumps in AST dumps.
339
+ LLVM_PREFERRED_TYPE (bool )
318
340
unsigned ASTDumpDecls : 1 ;
319
341
320
342
// / Whether we deserialize all decls when forming AST dumps.
343
+ LLVM_PREFERRED_TYPE (bool )
321
344
unsigned ASTDumpAll : 1 ;
322
345
323
346
// / Whether we include lookup table dumps in AST dumps.
347
+ LLVM_PREFERRED_TYPE (bool )
324
348
unsigned ASTDumpLookups : 1 ;
325
349
326
350
// / Whether we include declaration type dumps in AST dumps.
351
+ LLVM_PREFERRED_TYPE (bool )
327
352
unsigned ASTDumpDeclTypes : 1 ;
328
353
329
354
// / Whether we are performing an implicit module build.
355
+ LLVM_PREFERRED_TYPE (bool )
330
356
unsigned BuildingImplicitModule : 1 ;
331
357
332
358
// / Whether to use a filesystem lock when building implicit modules.
359
+ LLVM_PREFERRED_TYPE (bool )
333
360
unsigned BuildingImplicitModuleUsesLock : 1 ;
334
361
335
362
// / Whether we should embed all used files into the PCM file.
363
+ LLVM_PREFERRED_TYPE (bool )
336
364
unsigned ModulesEmbedAllFiles : 1 ;
337
365
338
366
// / Whether timestamps should be written to the produced PCH file.
367
+ LLVM_PREFERRED_TYPE (bool )
339
368
unsigned IncludeTimestamps : 1 ;
340
369
341
370
// / Should a temporary file be used during compilation.
371
+ LLVM_PREFERRED_TYPE (bool )
342
372
unsigned UseTemporary : 1 ;
343
373
344
374
// / When using -emit-module, treat the modulemap as a system module.
375
+ LLVM_PREFERRED_TYPE (bool )
345
376
unsigned IsSystemModule : 1 ;
346
377
347
378
// / Output (and read) PCM files regardless of compiler errors.
379
+ LLVM_PREFERRED_TYPE (bool )
348
380
unsigned AllowPCMWithCompilerErrors : 1 ;
349
381
350
382
// / Whether to share the FileManager when building modules.
383
+ LLVM_PREFERRED_TYPE (bool )
351
384
unsigned ModulesShareFileManager : 1 ;
352
385
353
386
CodeCompleteOptions CodeCompleteOpts;
0 commit comments