@@ -28,12 +28,8 @@ CODEGENOPT(Name, Bits, Default)
28
28
#endif
29
29
30
30
CODEGENOPT(DisableIntegratedAS, 1, 0) ///< -no-integrated-as
31
- ENUM_CODEGENOPT(CompressDebugSections, llvm::DebugCompressionType, 2,
32
- llvm::DebugCompressionType::None)
33
31
CODEGENOPT(RelaxELFRelocations, 1, 1) ///< -Wa,-mrelax-relocations={yes,no}
34
32
CODEGENOPT(AsmVerbose , 1, 0) ///< -dA, -fverbose-asm.
35
- CODEGENOPT(Dwarf64 , 1, 0) ///< -gdwarf64.
36
- CODEGENOPT(Dwarf32 , 1, 1) ///< -gdwarf32.
37
33
CODEGENOPT(PreserveAsmComments, 1, 1) ///< -dA, -fno-preserve-as-comments.
38
34
CODEGENOPT(AssumeSaneOperatorNew , 1, 1) ///< implicit __attribute__((malloc)) operator new
39
35
CODEGENOPT(AssumeUniqueVTables , 1, 1) ///< Assume a class has only one vtable.
@@ -73,10 +69,6 @@ CODEGENOPT(DebugPassManager, 1, 0) ///< Prints debug information for the new
73
69
CODEGENOPT(DisableRedZone , 1, 0) ///< Set when -mno-red-zone is enabled.
74
70
CODEGENOPT(EmitCallSiteInfo, 1, 0) ///< Emit call site info only in the case of
75
71
///< '-g' + 'O>0' level.
76
- CODEGENOPT(EnableDIPreservationVerify, 1, 0) ///< Enable di preservation verify
77
- ///< each (it means check
78
- ///< the original debug info
79
- ///< metadata preservation).
80
72
CODEGENOPT(IndirectTlsSegRefs, 1, 0) ///< Set when -mno-tls-direct-seg-refs
81
73
///< is specified.
82
74
CODEGENOPT(DisableTailCalls , 1, 0) ///< Do not emit tail calls.
@@ -113,16 +105,10 @@ CODEGENOPT(IndirectBranchCSPrefix, 1, 0) ///< if -mindirect-branch-cs-prefix
113
105
CODEGENOPT(XRayInstrumentFunctions , 1, 0) ///< Set when -fxray-instrument is
114
106
///< enabled.
115
107
CODEGENOPT(StackSizeSection , 1, 0) ///< Set when -fstack-size-section is enabled.
116
- CODEGENOPT(ForceDwarfFrameSection , 1, 0) ///< Set when -fforce-dwarf-frame is
117
- ///< enabled.
118
108
119
109
///< Set when -femit-compact-unwind-non-canonical is enabled.
120
110
CODEGENOPT(EmitCompactUnwindNonCanonical, 1, 0)
121
111
122
- ///< Set when -femit-dwarf-unwind is passed.
123
- ENUM_CODEGENOPT(EmitDwarfUnwind, llvm::EmitDwarfUnwindType, 2,
124
- llvm::EmitDwarfUnwindType::Default)
125
-
126
112
///< Set when -fxray-always-emit-customevents is enabled.
127
113
CODEGENOPT(XRayAlwaysEmitCustomEvents , 1, 0)
128
114
@@ -178,17 +164,13 @@ CODEGENOPT(IncrementalLinkerCompatible, 1, 0) ///< Emit an object file which can
178
164
CODEGENOPT(MergeAllConstants , 1, 1) ///< Merge identical constants.
179
165
CODEGENOPT(MergeFunctions , 1, 0) ///< Set when -fmerge-functions is enabled.
180
166
CODEGENOPT(NoCommon , 1, 0) ///< Set when -fno-common or C++ is enabled.
181
- CODEGENOPT(NoDwarfDirectoryAsm , 1, 0) ///< Set when -fno-dwarf-directory-asm is
182
- ///< enabled.
183
167
CODEGENOPT(NoExecStack , 1, 0) ///< Set when -Wa,--noexecstack is enabled.
184
168
CODEGENOPT(FatalWarnings , 1, 0) ///< Set when -Wa,--fatal-warnings is
185
169
///< enabled.
186
170
CODEGENOPT(NoWarn , 1, 0) ///< Set when -Wa,--no-warn is enabled.
187
171
CODEGENOPT(NoTypeCheck , 1, 0) ///< Set when -Wa,--no-type-check is enabled.
188
172
CODEGENOPT(MisExpect , 1, 0) ///< Set when -Wmisexpect is enabled
189
173
CODEGENOPT(EnableSegmentedStacks , 1, 0) ///< Set when -fsplit-stack is enabled.
190
- CODEGENOPT(NoInlineLineTables, 1, 0) ///< Whether debug info should contain
191
- ///< inline line tables.
192
174
CODEGENOPT(StackClashProtector, 1, 0) ///< Set when -fstack-clash-protection is enabled.
193
175
CODEGENOPT(NoImplicitFloat , 1, 0) ///< Set when -mno-implicit-float is enabled.
194
176
CODEGENOPT(NullPointerIsValid , 1, 0) ///< Assume Null pointer deference is defined.
@@ -341,37 +323,6 @@ VALUE_CODEGENOPT(StackProbeSize , 32, 4096) ///< Overrides default stack
341
323
///< probe size, even if 0.
342
324
VALUE_CODEGENOPT(WarnStackSize , 32, UINT_MAX) ///< Set via -fwarn-stack-size.
343
325
CODEGENOPT(NoStackArgProbe, 1, 0) ///< Set when -mno-stack-arg-probe is used
344
- CODEGENOPT(DebugStrictDwarf, 1, 1) ///< Whether or not to use strict DWARF info.
345
-
346
- /// Control the Assignment Tracking debug info feature.
347
- ENUM_CODEGENOPT(AssignmentTrackingMode, AssignmentTrackingOpts, 2, AssignmentTrackingOpts::Disabled)
348
-
349
- CODEGENOPT(DebugColumnInfo, 1, 0) ///< Whether or not to use column information
350
- ///< in debug info.
351
-
352
- CODEGENOPT(DebugTypeExtRefs, 1, 0) ///< Whether or not debug info should contain
353
- ///< external references to a PCH or module.
354
-
355
- CODEGENOPT(DebugExplicitImport, 1, 0) ///< Whether or not debug info should
356
- ///< contain explicit imports for
357
- ///< anonymous namespaces
358
-
359
- /// Set debug info source file hashing algorithm.
360
- ENUM_CODEGENOPT(DebugSrcHash, DebugSrcHashKind, 2, DSH_MD5)
361
-
362
- CODEGENOPT(SplitDwarfInlining, 1, 1) ///< Whether to include inlining info in the
363
- ///< skeleton CU to allow for symbolication
364
- ///< of inline stack frames without .dwo files.
365
- CODEGENOPT(DebugFwdTemplateParams, 1, 0) ///< Whether to emit complete
366
- ///< template parameter descriptions in
367
- ///< forward declarations (versus just
368
- ///< including them in the name).
369
- ENUM_CODEGENOPT(DebugSimpleTemplateNames, llvm::codegenoptions::DebugTemplateNamesKind, 2, llvm::codegenoptions::DebugTemplateNamesKind::Full) ///< Whether to emit template parameters
370
- ///< in the textual names of template
371
- ///< specializations.
372
- ///< Implies DebugFwdTemplateNames to
373
- ///< allow decorated names to be
374
- ///< reconstructed when needed.
375
326
CODEGENOPT(EmitLLVMUseLists, 1, 0) ///< Control whether to serialize use-lists.
376
327
377
328
CODEGENOPT(WholeProgramVTables, 1, 0) ///< Whether to apply whole-program
@@ -395,30 +346,6 @@ VALUE_CODEGENOPT(SmallDataLimit, 32, 0)
395
346
/// The lower bound for a buffer to be considered for stack protection.
396
347
VALUE_CODEGENOPT(SSPBufferSize, 32, 0)
397
348
398
- /// The kind of generated debug info.
399
- ENUM_CODEGENOPT(DebugInfo, llvm::codegenoptions::DebugInfoKind, 4, llvm::codegenoptions::NoDebugInfo)
400
-
401
- /// Whether to generate macro debug info.
402
- CODEGENOPT(MacroDebugInfo, 1, 0)
403
-
404
- /// Tune the debug info for this debugger.
405
- ENUM_CODEGENOPT(DebuggerTuning, llvm::DebuggerKind, 3,
406
- llvm::DebuggerKind::Default)
407
-
408
- /// Dwarf version. Version zero indicates to LLVM that no DWARF should be
409
- /// emitted.
410
- VALUE_CODEGENOPT(DwarfVersion, 3, 0)
411
-
412
- /// Whether we should emit CodeView debug information. It's possible to emit
413
- /// CodeView and DWARF into the same object.
414
- CODEGENOPT(EmitCodeView, 1, 0)
415
-
416
- /// Whether to emit the .debug$H section containing hashes of CodeView types.
417
- CODEGENOPT(CodeViewGHash, 1, 0)
418
-
419
- /// Whether to emit the compiler path and command line into the CodeView debug information.
420
- CODEGENOPT(CodeViewCommandLine, 1, 0)
421
-
422
349
/// The kind of inlining to perform.
423
350
ENUM_CODEGENOPT(Inlining, InliningMethod, 2, NormalInlining)
424
351
@@ -451,26 +378,14 @@ CODEGENOPT(DirectAccessExternalData, 1, 0)
451
378
/// paths that reach the end of a function without executing a required return.
452
379
CODEGENOPT(StrictReturn, 1, 1)
453
380
454
- /// Whether emit extra debug info for sample pgo profile collection.
455
- CODEGENOPT(DebugInfoForProfiling, 1, 0)
456
-
457
381
/// Whether emit pseudo probes for sample pgo profile collection.
458
382
CODEGENOPT(PseudoProbeForProfiling, 1, 0)
459
383
460
384
/// Whether 3-component vector type is preserved.
461
385
CODEGENOPT(PreserveVec3Type, 1, 0)
462
386
463
- /// Whether to emit .debug_gnu_pubnames section instead of .debug_pubnames.
464
- CODEGENOPT(DebugNameTable, 2, 0)
465
-
466
- /// Whether to use DWARF base address specifiers in .debug_ranges.
467
- CODEGENOPT(DebugRangesBaseAddress, 1, 0)
468
-
469
387
CODEGENOPT(NoPLT, 1, 0)
470
388
471
- /// Whether to embed source in DWARF debug line section.
472
- CODEGENOPT(EmbedSource, 1, 0)
473
-
474
389
/// Whether to emit all vtables
475
390
CODEGENOPT(ForceEmitVTables, 1, 0)
476
391
@@ -515,6 +430,9 @@ ENUM_CODEGENOPT(ZeroCallUsedRegs, llvm::ZeroCallUsedRegs::ZeroCallUsedRegsKind,
515
430
/// non-deleting destructors. (No effect on Microsoft ABI.)
516
431
CODEGENOPT(CtorDtorReturnThis, 1, 0)
517
432
433
+ /// FIXME: Make DebugOptions its own top-level .def file.
434
+ #include "DebugOptions.def"
435
+
518
436
#undef CODEGENOPT
519
437
#undef ENUM_CODEGENOPT
520
438
#undef VALUE_CODEGENOPT
0 commit comments