LLVM  15.0.0git
MCObjectFileInfo.h
Go to the documentation of this file.
1 //===-- llvm/MC/MCObjectFileInfo.h - Object File Info -----------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file describes common object file formats.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_MC_MCOBJECTFILEINFO_H
14 #define LLVM_MC_MCOBJECTFILEINFO_H
15 
16 #include "llvm/ADT/Optional.h"
17 #include "llvm/ADT/Triple.h"
20 
21 #include <array>
22 
23 namespace llvm {
24 class MCContext;
25 class MCSection;
26 
28 protected:
29  /// True if .comm supports alignment. This is a hack for as long as we
30  /// support 10.4 Tiger, whose assembler doesn't support alignment on comm.
32 
33  /// True if target object file supports a weak_definition of constant 0 for an
34  /// omitted EH frame.
36 
37  /// True if the target object file supports emitting a compact unwind section
38  /// without an associated EH frame section.
40 
41  /// OmitDwarfIfHaveCompactUnwind - True if the target object file
42  /// supports having some functions with compact unwind and other with
43  /// dwarf unwind.
45 
46  /// FDE CFI encoding. Controls the encoding of the begin label in the
47  /// .eh_frame section. Unlike the LSDA encoding, personality encoding, and
48  /// type encodings, this is something that the assembler just "knows" about
49  /// its target
50  unsigned FDECFIEncoding = 0;
51 
52  /// Compact unwind encoding indicating that we should emit only an EH frame.
54 
55  /// Section directive for standard text.
56  MCSection *TextSection = nullptr;
57 
58  /// Section directive for standard data.
59  MCSection *DataSection = nullptr;
60 
61  /// Section that is default initialized to zero.
62  MCSection *BSSSection = nullptr;
63 
64  /// Section that is readonly and can contain arbitrary initialized data.
65  /// Targets are not required to have a readonly section. If they don't,
66  /// various bits of code will fall back to using the data section for
67  /// constants.
69 
70  /// If exception handling is supported by the target, this is the section the
71  /// Language Specific Data Area information is emitted to.
72  MCSection *LSDASection = nullptr;
73 
74  /// If exception handling is supported by the target and the target can
75  /// support a compact representation of the CIE and FDE, this is the section
76  /// to emit them into.
78 
79  // Dwarf sections for debug info. If a target supports debug info, these must
80  // be set.
94  // The pubnames section is no longer generated by default. The generation
95  // can be enabled by a compiler flag.
97 
98  /// Accelerator table sections. DwarfDebugNamesSection is the DWARF v5
99  /// accelerator table, while DwarfAccelNamesSection, DwarfAccelObjCSection,
100  /// DwarfAccelNamespaceSection, DwarfAccelTypesSection are pre-DWARF v5
101  /// extensions.
107 
108  // These are used for the Fission separate debug information files.
118 
119  /// The DWARF v5 string offset and address table sections.
122  /// The DWARF v5 range list section.
124  /// The DWARF v5 locations list section.
126 
127  /// The DWARF v5 range and location list sections for fission.
130 
131  // These are for Fission DWP files.
134 
135  /// Section for newer gnu pubnames.
137  /// Section for newer gnu pubtypes.
139 
140  // Section for Swift AST
142 
146 
147  /// Extra TLS Variable Data section.
148  ///
149  /// If the target needs to put additional information for a TLS variable,
150  /// it'll go here.
152 
153  /// Section directive for Thread Local data. ELF, MachO, COFF, and Wasm.
154  MCSection *TLSDataSection = nullptr; // Defaults to ".tdata".
155 
156  /// Section directive for Thread Local uninitialized data.
157  ///
158  /// Null if this target doesn't support a BSS section. ELF and MachO only.
159  MCSection *TLSBSSSection = nullptr; // Defaults to ".tbss".
160 
161  /// StackMap section.
163 
164  /// FaultMap section.
166 
167  /// Remarks section.
169 
170  /// EH frame section.
171  ///
172  /// It is initialized on demand so it can be overwritten (with uniquing).
174 
175  /// Section containing metadata on function stack sizes.
177 
178  /// Section for pseudo probe information used by AutoFDO
181 
182  // ELF specific sections.
188 
189  // MachO specific sections.
190 
191  /// Section for thread local structure information.
192  ///
193  /// Contains the source code name of the variable, visibility and a pointer to
194  /// the initial value (.tdata or .tbss).
195  MCSection *TLSTLVSection = nullptr; // Defaults to ".tlv".
196 
197  /// Section for thread local data initialization functions.
198  // Defaults to ".thread_init_func".
199  const MCSection *TLSThreadInitSection = nullptr;
200 
217 
218  /// COFF specific sections.
227 
228  // GOFF specific sections.
229  MCSection *PPA1Section = nullptr;
230 
231  // XCOFF specific sections
235 
236  // Swift5 Reflection Data Sections
237  std::array<MCSection *, binaryformat::Swift5ReflectionSectionKind::last>
239 
240 public:
241  void initMCObjectFileInfo(MCContext &MCCtx, bool PIC,
242  bool LargeCodeModel = false);
243  virtual ~MCObjectFileInfo();
244  MCContext &getContext() const { return *Ctx; }
245 
248  }
251  }
254  }
255 
258  }
259 
260  unsigned getFDEEncoding() const { return FDECFIEncoding; }
261 
264  }
265 
266  virtual unsigned getTextSectionAlignment() const { return 4; }
267  MCSection *getTextSection() const { return TextSection; }
268  MCSection *getDataSection() const { return DataSection; }
269  MCSection *getBSSSection() const { return BSSSection; }
271  MCSection *getLSDASection() const { return LSDASection; }
276  return getDwarfComdatSection(".debug_info", Hash);
277  }
285  }
288  }
291  }
300 
302  return DwarfDebugNamesSection;
303  }
305  return DwarfAccelNamesSection;
306  }
310  }
312  return DwarfAccelTypesSection;
313  }
316  return getDwarfComdatSection(".debug_types", Hash);
317  }
328  }
331  }
334  return DwarfMacinfoDWOSection;
335  }
339 
342  }
344  return COFFDebugTypesSection;
345  }
348  }
349 
351  const MCSection *getTLSDataSection() const { return TLSDataSection; }
353 
357 
358  MCSection *getStackSizesSection(const MCSection &TextSec) const;
359 
360  MCSection *getBBAddrMapSection(const MCSection &TextSec) const;
361 
362  MCSection *getPseudoProbeSection(const MCSection *TextSec) const;
363 
365 
366  // ELF specific sections.
369  return MergeableConst4Section;
370  }
372  return MergeableConst8Section;
373  }
376  }
379  }
380 
381  // MachO specific sections.
382  const MCSection *getTLSTLVSection() const { return TLSTLVSection; }
384  return TLSThreadInitSection;
385  }
386  const MCSection *getCStringSection() const { return CStringSection; }
387  const MCSection *getUStringSection() const { return UStringSection; }
390  return ConstTextCoalSection;
391  }
392  const MCSection *getConstDataSection() const { return ConstDataSection; }
393  const MCSection *getDataCoalSection() const { return DataCoalSection; }
395  return ConstDataCoalSection;
396  }
401  }
404  }
407  }
410  }
413  }
416  }
418 
419  // COFF specific sections.
428 
429  // GOFF specific sections.
430  MCSection *getPPA1Section() const { return PPA1Section; }
431 
432  // XCOFF specific sections
434 
436 
437  bool isPositionIndependent() const { return PositionIndependent; }
438 
439  // Swift5 Reflection Data Sections
442  return ReflSectionKind !=
444  ? Swift5ReflectionSections[ReflSectionKind]
445  : nullptr;
446  }
447 
448 private:
449  bool PositionIndependent = false;
450  MCContext *Ctx = nullptr;
451  VersionTuple SDKVersion;
452  Optional<Triple> DarwinTargetVariantTriple;
453  VersionTuple DarwinTargetVariantSDKVersion;
454 
455  void initMachOMCObjectFileInfo(const Triple &T);
456  void initELFMCObjectFileInfo(const Triple &T, bool Large);
457  void initGOFFMCObjectFileInfo(const Triple &T);
458  void initCOFFMCObjectFileInfo(const Triple &T);
459  void initSPIRVMCObjectFileInfo(const Triple &T);
460  void initWasmMCObjectFileInfo(const Triple &T);
461  void initXCOFFMCObjectFileInfo(const Triple &T);
462  MCSection *getDwarfComdatSection(const char *Name, uint64_t Hash) const;
463 
464 public:
465  void setSDKVersion(const VersionTuple &TheSDKVersion) {
466  SDKVersion = TheSDKVersion;
467  }
468 
469  const VersionTuple &getSDKVersion() const { return SDKVersion; }
470 
472  DarwinTargetVariantTriple = T;
473  }
474 
476  return DarwinTargetVariantTriple ? DarwinTargetVariantTriple.getPointer()
477  : nullptr;
478  }
479 
480  void setDarwinTargetVariantSDKVersion(const VersionTuple &TheSDKVersion) {
481  DarwinTargetVariantSDKVersion = TheSDKVersion;
482  }
483 
485  return DarwinTargetVariantSDKVersion;
486  }
487 };
488 
489 } // end namespace llvm
490 
491 #endif
llvm::MCObjectFileInfo::TextCoalSection
MCSection * TextCoalSection
Definition: MCObjectFileInfo.h:203
llvm::MCObjectFileInfo::DwarfLineDWOSection
MCSection * DwarfLineDWOSection
Definition: MCObjectFileInfo.h:113
llvm::MCObjectFileInfo::getDwarfRangesSection
MCSection * getDwarfRangesSection() const
Definition: MCObjectFileInfo.h:295
llvm::MCObjectFileInfo::CompactUnwindSection
MCSection * CompactUnwindSection
If exception handling is supported by the target and the target can support a compact representation ...
Definition: MCObjectFileInfo.h:77
llvm::MCObjectFileInfo::ConstTextCoalSection
MCSection * ConstTextCoalSection
Definition: MCObjectFileInfo.h:204
llvm::MCObjectFileInfo::DwarfSwiftASTSection
MCSection * DwarfSwiftASTSection
Definition: MCObjectFileInfo.h:141
llvm::MCObjectFileInfo::getDwarfAddrSection
MCSection * getDwarfAddrSection() const
Definition: MCObjectFileInfo.h:325
llvm::MCObjectFileInfo::~MCObjectFileInfo
virtual ~MCObjectFileInfo()
llvm::MCObjectFileInfo::CompactUnwindDwarfEHFrameOnly
unsigned CompactUnwindDwarfEHFrameOnly
Compact unwind encoding indicating that we should emit only an EH frame.
Definition: MCObjectFileInfo.h:53
llvm::MCObjectFileInfo::getDwarfAccelObjCSection
MCSection * getDwarfAccelObjCSection() const
Definition: MCObjectFileInfo.h:307
llvm::MCObjectFileInfo::getDwarfFrameSection
MCSection * getDwarfFrameSection() const
Definition: MCObjectFileInfo.h:280
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::MCObjectFileInfo::getCStringSection
const MCSection * getCStringSection() const
Definition: MCObjectFileInfo.h:386
llvm::MCObjectFileInfo::DwarfAbbrevDWOSection
MCSection * DwarfAbbrevDWOSection
Definition: MCObjectFileInfo.h:111
llvm::MCObjectFileInfo::XDataSection
MCSection * XDataSection
Definition: MCObjectFileInfo.h:221
llvm::MCObjectFileInfo::DwarfRnglistsDWOSection
MCSection * DwarfRnglistsDWOSection
The DWARF v5 range and location list sections for fission.
Definition: MCObjectFileInfo.h:128
llvm::MCObjectFileInfo::getDwarfMacroSection
MCSection * getDwarfMacroSection() const
Definition: MCObjectFileInfo.h:299
llvm::MCObjectFileInfo::OmitDwarfIfHaveCompactUnwind
bool OmitDwarfIfHaveCompactUnwind
OmitDwarfIfHaveCompactUnwind - True if the target object file supports having some functions with com...
Definition: MCObjectFileInfo.h:44
Optional.h
llvm::MCObjectFileInfo::getTextSectionAlignment
virtual unsigned getTextSectionAlignment() const
Definition: MCObjectFileInfo.h:266
llvm::MCObjectFileInfo::EightByteConstantSection
MCSection * EightByteConstantSection
Definition: MCObjectFileInfo.h:211
llvm::MCObjectFileInfo::getCommDirectiveSupportsAlignment
bool getCommDirectiveSupportsAlignment() const
Definition: MCObjectFileInfo.h:256
llvm::MCObjectFileInfo::getDwarfPubTypesSection
MCSection * getDwarfPubTypesSection() const
Definition: MCObjectFileInfo.h:282
llvm::MCObjectFileInfo::getTOCBaseSection
MCSection * getTOCBaseSection() const
Definition: MCObjectFileInfo.h:433
llvm::MCObjectFileInfo::MergeableConst16Section
MCSection * MergeableConst16Section
Definition: MCObjectFileInfo.h:186
llvm::MCObjectFileInfo::ReadOnlySection
MCSection * ReadOnlySection
Section that is readonly and can contain arbitrary initialized data.
Definition: MCObjectFileInfo.h:68
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:74
llvm::MCObjectFileInfo::NonLazySymbolPointerSection
MCSection * NonLazySymbolPointerSection
Definition: MCObjectFileInfo.h:214
llvm::MCObjectFileInfo::DwarfLineSection
MCSection * DwarfLineSection
Definition: MCObjectFileInfo.h:83
llvm::MCObjectFileInfo::getDwarfLoclistsSection
MCSection * getDwarfLoclistsSection() const
Definition: MCObjectFileInfo.h:297
llvm::MCObjectFileInfo::GFIDsSection
MCSection * GFIDsSection
Definition: MCObjectFileInfo.h:224
llvm::MCObjectFileInfo::DwarfLocDWOSection
MCSection * DwarfLocDWOSection
Definition: MCObjectFileInfo.h:114
llvm::MCObjectFileInfo::getTLSDataSection
const MCSection * getTLSDataSection() const
Definition: MCObjectFileInfo.h:351
llvm::MCObjectFileInfo::getDwarfCUIndexSection
MCSection * getDwarfCUIndexSection() const
Definition: MCObjectFileInfo.h:336
llvm::MCObjectFileInfo::SixteenByteConstantSection
MCSection * SixteenByteConstantSection
Definition: MCObjectFileInfo.h:212
llvm::MCObjectFileInfo::DwarfAddrSection
MCSection * DwarfAddrSection
Definition: MCObjectFileInfo.h:121
llvm::MCObjectFileInfo::CommDirectiveSupportsAlignment
bool CommDirectiveSupportsAlignment
True if .comm supports alignment.
Definition: MCObjectFileInfo.h:31
llvm::MCObjectFileInfo::FourByteConstantSection
MCSection * FourByteConstantSection
Definition: MCObjectFileInfo.h:210
llvm::MCObjectFileInfo::getThreadLocalPointerSection
MCSection * getThreadLocalPointerSection() const
Definition: MCObjectFileInfo.h:414
VersionTuple.h
llvm::MCObjectFileInfo::getTLSThreadInitSection
const MCSection * getTLSThreadInitSection() const
Definition: MCObjectFileInfo.h:383
llvm::MCObjectFileInfo::ThreadLocalPointerSection
MCSection * ThreadLocalPointerSection
Definition: MCObjectFileInfo.h:215
llvm::MCObjectFileInfo::getCOFFDebugSymbolsSection
MCSection * getCOFFDebugSymbolsSection() const
Definition: MCObjectFileInfo.h:340
llvm::MCObjectFileInfo::DataBSSSection
MCSection * DataBSSSection
Definition: MCObjectFileInfo.h:209
llvm::MCObjectFileInfo::getFDEEncoding
unsigned getFDEEncoding() const
Definition: MCObjectFileInfo.h:260
llvm::Triple
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
llvm::MCObjectFileInfo::AddrSigSection
MCSection * AddrSigSection
Definition: MCObjectFileInfo.h:216
llvm::MCObjectFileInfo::DwarfAbbrevSection
MCSection * DwarfAbbrevSection
Definition: MCObjectFileInfo.h:81
Swift.h
llvm::MCObjectFileInfo::DwarfDebugNamesSection
MCSection * DwarfDebugNamesSection
Accelerator table sections.
Definition: MCObjectFileInfo.h:102
PIC
PassInstrumentationCallbacks PIC
Definition: PassBuilderBindings.cpp:55
llvm::MCObjectFileInfo::DwarfTUIndexSection
MCSection * DwarfTUIndexSection
Definition: MCObjectFileInfo.h:133
llvm::MCObjectFileInfo::getDwarfLocSection
MCSection * getDwarfLocSection() const
Definition: MCObjectFileInfo.h:293
llvm::Optional
Definition: APInt.h:33
T
#define T
Definition: Mips16ISelLowering.cpp:341
llvm::MCObjectFileInfo::getPseudoProbeSection
MCSection * getPseudoProbeSection(const MCSection *TextSec) const
Definition: MCObjectFileInfo.cpp:1125
llvm::MCObjectFileInfo::ConstDataCoalSection
MCSection * ConstDataCoalSection
Definition: MCObjectFileInfo.h:207
llvm::MCObjectFileInfo::LazySymbolPointerSection
MCSection * LazySymbolPointerSection
Definition: MCObjectFileInfo.h:213
llvm::MCObjectFileInfo::TLSExtraDataSection
MCSection * TLSExtraDataSection
Extra TLS Variable Data section.
Definition: MCObjectFileInfo.h:151
llvm::MCObjectFileInfo::getDwarfStrOffSection
MCSection * getDwarfStrOffSection() const
Definition: MCObjectFileInfo.h:324
llvm::MCObjectFileInfo::getFaultMapSection
MCSection * getFaultMapSection() const
Definition: MCObjectFileInfo.h:355
llvm::MCObjectFileInfo::DwarfPubNamesSection
MCSection * DwarfPubNamesSection
Definition: MCObjectFileInfo.h:96
llvm::MCObjectFileInfo::DwarfPubTypesSection
MCSection * DwarfPubTypesSection
Definition: MCObjectFileInfo.h:86
llvm::MCObjectFileInfo::SXDataSection
MCSection * SXDataSection
Definition: MCObjectFileInfo.h:222
llvm::MCObjectFileInfo::getMergeableConst16Section
const MCSection * getMergeableConst16Section() const
Definition: MCObjectFileInfo.h:374
llvm::MCObjectFileInfo::getDwarfGnuPubTypesSection
MCSection * getDwarfGnuPubTypesSection() const
Definition: MCObjectFileInfo.h:286
llvm::MCObjectFileInfo::getContext
MCContext & getContext() const
Definition: MCObjectFileInfo.h:244
llvm::MCObjectFileInfo::getDwarfInfoSection
MCSection * getDwarfInfoSection() const
Definition: MCObjectFileInfo.h:274
llvm::MCObjectFileInfo::DwarfFrameSection
MCSection * DwarfFrameSection
Definition: MCObjectFileInfo.h:85
llvm::MCObjectFileInfo::getGFIDsSection
MCSection * getGFIDsSection() const
Definition: MCObjectFileInfo.h:425
llvm::MCObjectFileInfo::getDwarfLoclistsDWOSection
MCSection * getDwarfLoclistsDWOSection() const
Definition: MCObjectFileInfo.h:329
llvm::MCObjectFileInfo::DwarfARangesSection
MCSection * DwarfARangesSection
Definition: MCObjectFileInfo.h:90
llvm::MCObjectFileInfo::DwarfStrSection
MCSection * DwarfStrSection
Definition: MCObjectFileInfo.h:88
llvm::Optional::getPointer
constexpr const T * getPointer() const
Definition: Optional.h:277
llvm::MCObjectFileInfo::getLazySymbolPointerSection
MCSection * getLazySymbolPointerSection() const
Definition: MCObjectFileInfo.h:408
llvm::MCObjectFileInfo::getDwarfPubNamesSection
MCSection * getDwarfPubNamesSection() const
Definition: MCObjectFileInfo.h:281
llvm::MCObjectFileInfo::ReadOnly8Section
MCSection * ReadOnly8Section
Definition: MCObjectFileInfo.h:233
llvm::MCObjectFileInfo::getDarwinTargetVariantSDKVersion
const VersionTuple & getDarwinTargetVariantSDKVersion() const
Definition: MCObjectFileInfo.h:484
llvm::MCObjectFileInfo::Swift5ReflectionSections
std::array< MCSection *, binaryformat::Swift5ReflectionSectionKind::last > Swift5ReflectionSections
Definition: MCObjectFileInfo.h:238
llvm::MCObjectFileInfo::getDataRelROSection
MCSection * getDataRelROSection() const
Definition: MCObjectFileInfo.h:367
llvm::MCObjectFileInfo::LSDASection
MCSection * LSDASection
If exception handling is supported by the target, this is the section the Language Specific Data Area...
Definition: MCObjectFileInfo.h:72
llvm::MCObjectFileInfo::getDataSection
MCSection * getDataSection() const
Definition: MCObjectFileInfo.h:268
llvm::MCObjectFileInfo::getTLSExtraDataSection
MCSection * getTLSExtraDataSection() const
Definition: MCObjectFileInfo.h:350
llvm::MCObjectFileInfo::SupportsCompactUnwindWithoutEHFrame
bool SupportsCompactUnwindWithoutEHFrame
True if the target object file supports emitting a compact unwind section without an associated EH fr...
Definition: MCObjectFileInfo.h:39
llvm::MCObjectFileInfo::getDwarfARangesSection
MCSection * getDwarfARangesSection() const
Definition: MCObjectFileInfo.h:294
llvm::MCObjectFileInfo::PPA1Section
MCSection * PPA1Section
Definition: MCObjectFileInfo.h:229
llvm::MCObjectFileInfo::getGLJMPSection
MCSection * getGLJMPSection() const
Definition: MCObjectFileInfo.h:427
llvm::MCObjectFileInfo::getPPA1Section
MCSection * getPPA1Section() const
Definition: MCObjectFileInfo.h:430
llvm::MCObjectFileInfo::MergeableConst8Section
MCSection * MergeableConst8Section
Definition: MCObjectFileInfo.h:185
llvm::MCObjectFileInfo::getDarwinTargetVariantTriple
const Triple * getDarwinTargetVariantTriple() const
Definition: MCObjectFileInfo.h:475
llvm::MCObjectFileInfo::setDarwinTargetVariantSDKVersion
void setDarwinTargetVariantSDKVersion(const VersionTuple &TheSDKVersion)
Definition: MCObjectFileInfo.h:480
llvm::MCObjectFileInfo::getDataBSSSection
MCSection * getDataBSSSection() const
Definition: MCObjectFileInfo.h:398
llvm::MCObjectFileInfo::isPositionIndependent
bool isPositionIndependent() const
Definition: MCObjectFileInfo.h:437
llvm::MCObjectFileInfo::getDwarfMacinfoSection
MCSection * getDwarfMacinfoSection() const
Definition: MCObjectFileInfo.h:298
llvm::MCObjectFileInfo::getStackMapSection
MCSection * getStackMapSection() const
Definition: MCObjectFileInfo.h:354
llvm::MCObjectFileInfo::FDECFIEncoding
unsigned FDECFIEncoding
FDE CFI encoding.
Definition: MCObjectFileInfo.h:50
llvm::MCObjectFileInfo::TLSThreadInitSection
const MCSection * TLSThreadInitSection
Section for thread local data initialization functions.
Definition: MCObjectFileInfo.h:199
llvm::MCObjectFileInfo::getDwarfInfoDWOSection
MCSection * getDwarfInfoDWOSection() const
Definition: MCObjectFileInfo.h:314
llvm::MCObjectFileInfo::DwarfAccelTypesSection
MCSection * DwarfAccelTypesSection
Definition: MCObjectFileInfo.h:106
llvm::MCObjectFileInfo::getCompactUnwindSection
MCSection * getCompactUnwindSection() const
Definition: MCObjectFileInfo.h:272
llvm::MCObjectFileInfo::getDwarfLocDWOSection
MCSection * getDwarfLocDWOSection() const
Definition: MCObjectFileInfo.h:322
llvm::MCObjectFileInfo::DwarfStrOffDWOSection
MCSection * DwarfStrOffDWOSection
Definition: MCObjectFileInfo.h:115
llvm::MCObjectFileInfo::getStackSizesSection
MCSection * getStackSizesSection(const MCSection &TextSec) const
Definition: MCObjectFileInfo.cpp:1087
llvm::MCObjectFileInfo::GLJMPSection
MCSection * GLJMPSection
Definition: MCObjectFileInfo.h:226
llvm::MCObjectFileInfo::getFourByteConstantSection
const MCSection * getFourByteConstantSection() const
Definition: MCObjectFileInfo.h:399
llvm::MCObjectFileInfo::DwarfStrDWOSection
MCSection * DwarfStrDWOSection
Definition: MCObjectFileInfo.h:112
llvm::MCObjectFileInfo::getTLSTLVSection
const MCSection * getTLSTLVSection() const
Definition: MCObjectFileInfo.h:382
llvm::MCObjectFileInfo::setSDKVersion
void setSDKVersion(const VersionTuple &TheSDKVersion)
Definition: MCObjectFileInfo.h:465
llvm::MCObjectFileInfo::getCOFFGlobalTypeHashesSection
MCSection * getCOFFGlobalTypeHashesSection() const
Definition: MCObjectFileInfo.h:346
llvm::MCObjectFileInfo::PDataSection
MCSection * PDataSection
Definition: MCObjectFileInfo.h:220
llvm::VersionTuple
Represents a version number in the form major[.minor[.subminor[.build]]].
Definition: VersionTuple.h:31
llvm::MCObjectFileInfo::getDwarfStrDWOSection
MCSection * getDwarfStrDWOSection() const
Definition: MCObjectFileInfo.h:320
llvm::MCObjectFileInfo::getLSDASection
MCSection * getLSDASection() const
Definition: MCObjectFileInfo.h:271
llvm::MCObjectFileInfo::TLSDataSection
MCSection * TLSDataSection
Section directive for Thread Local data. ELF, MachO, COFF, and Wasm.
Definition: MCObjectFileInfo.h:154
llvm::MCObjectFileInfo::DwarfRangesSection
MCSection * DwarfRangesSection
Definition: MCObjectFileInfo.h:91
llvm::MCObjectFileInfo::getTextSection
MCSection * getTextSection() const
Definition: MCObjectFileInfo.h:267
llvm::MCObjectFileInfo::getDwarfAccelNamespaceSection
MCSection * getDwarfAccelNamespaceSection() const
Definition: MCObjectFileInfo.h:308
llvm::MCObjectFileInfo::ConstDataSection
MCSection * ConstDataSection
Definition: MCObjectFileInfo.h:205
llvm::MCObjectFileInfo::DwarfLoclistsSection
MCSection * DwarfLoclistsSection
The DWARF v5 locations list section.
Definition: MCObjectFileInfo.h:125
llvm::MCObjectFileInfo::getPseudoProbeDescSection
MCSection * getPseudoProbeDescSection(StringRef FuncName) const
Definition: MCObjectFileInfo.cpp:1141
llvm::MCObjectFileInfo::getDwarfRnglistsSection
MCSection * getDwarfRnglistsSection() const
Definition: MCObjectFileInfo.h:296
llvm::MCObjectFileInfo::COFFGlobalTypeHashesSection
MCSection * COFFGlobalTypeHashesSection
Definition: MCObjectFileInfo.h:145
llvm::MCObjectFileInfo::getMergeableConst32Section
const MCSection * getMergeableConst32Section() const
Definition: MCObjectFileInfo.h:377
llvm::binaryformat::Swift5ReflectionSectionKind
Swift5ReflectionSectionKind
Definition: Swift.h:14
llvm::MCObjectFileInfo::FaultMapSection
MCSection * FaultMapSection
FaultMap section.
Definition: MCObjectFileInfo.h:165
llvm::MCObjectFileInfo::DwarfMacinfoSection
MCSection * DwarfMacinfoSection
Definition: MCObjectFileInfo.h:92
llvm::MCObjectFileInfo::getDwarfSwiftASTSection
MCSection * getDwarfSwiftASTSection() const
Definition: MCObjectFileInfo.h:338
uint64_t
llvm::MCObjectFileInfo::getGIATsSection
MCSection * getGIATsSection() const
Definition: MCObjectFileInfo.h:426
llvm::MCObjectFileInfo::getDwarfDebugNamesSection
MCSection * getDwarfDebugNamesSection() const
Definition: MCObjectFileInfo.h:301
llvm::MCObjectFileInfo::UStringSection
MCSection * UStringSection
Definition: MCObjectFileInfo.h:202
llvm::MCObjectFileInfo::CStringSection
MCSection * CStringSection
Definition: MCObjectFileInfo.h:201
llvm::MCObjectFileInfo::DwarfMacroSection
MCSection * DwarfMacroSection
Definition: MCObjectFileInfo.h:93
llvm::MCObjectFileInfo::getDataCoalSection
const MCSection * getDataCoalSection() const
Definition: MCObjectFileInfo.h:393
llvm::MCObjectFileInfo::getDwarfAccelNamesSection
MCSection * getDwarfAccelNamesSection() const
Definition: MCObjectFileInfo.h:304
llvm::MCObjectFileInfo::getNonLazySymbolPointerSection
MCSection * getNonLazySymbolPointerSection() const
Definition: MCObjectFileInfo.h:411
llvm::MCObjectFileInfo::SupportsWeakOmittedEHFrame
bool SupportsWeakOmittedEHFrame
True if target object file supports a weak_definition of constant 0 for an omitted EH frame.
Definition: MCObjectFileInfo.h:35
llvm::MCObjectFileInfo::getGEHContSection
MCSection * getGEHContSection() const
Definition: MCObjectFileInfo.h:424
llvm::MCObjectFileInfo::DwarfLineStrSection
MCSection * DwarfLineStrSection
Definition: MCObjectFileInfo.h:84
llvm::MCObjectFileInfo::getSixteenByteConstantSection
const MCSection * getSixteenByteConstantSection() const
Definition: MCObjectFileInfo.h:405
llvm::MCObjectFileInfo::DwarfLocSection
MCSection * DwarfLocSection
Definition: MCObjectFileInfo.h:89
llvm::MCObjectFileInfo::getCOFFDebugTypesSection
MCSection * getCOFFDebugTypesSection() const
Definition: MCObjectFileInfo.h:343
llvm::MCObjectFileInfo::getAddrSigSection
MCSection * getAddrSigSection() const
Definition: MCObjectFileInfo.h:417
llvm::MCObjectFileInfo::initMCObjectFileInfo
void initMCObjectFileInfo(MCContext &MCCtx, bool PIC, bool LargeCodeModel=false)
Definition: MCObjectFileInfo.cpp:1013
llvm::MCObjectFileInfo::PseudoProbeDescSection
MCSection * PseudoProbeDescSection
Definition: MCObjectFileInfo.h:180
llvm::MCObjectFileInfo::DwarfInfoSection
MCSection * DwarfInfoSection
Definition: MCObjectFileInfo.h:82
Triple.h
llvm::MCObjectFileInfo::getUStringSection
const MCSection * getUStringSection() const
Definition: MCObjectFileInfo.h:387
llvm::MCObjectFileInfo::DwarfMacroDWOSection
MCSection * DwarfMacroDWOSection
Definition: MCObjectFileInfo.h:117
llvm::MCObjectFileInfo::DwarfLoclistsDWOSection
MCSection * DwarfLoclistsDWOSection
Definition: MCObjectFileInfo.h:129
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::MCObjectFileInfo::getBBAddrMapSection
MCSection * getBBAddrMapSection(const MCSection &TextSec) const
Definition: MCObjectFileInfo.cpp:1105
llvm::binaryformat::unknown
@ unknown
Definition: Swift.h:18
llvm::MCObjectFileInfo::getDrectveSection
MCSection * getDrectveSection() const
Definition: MCObjectFileInfo.h:420
llvm::MCObjectFileInfo::getReadOnlySection
MCSection * getReadOnlySection() const
Definition: MCObjectFileInfo.h:270
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
llvm::MCObjectFileInfo::getPDataSection
MCSection * getPDataSection() const
Definition: MCObjectFileInfo.h:421
llvm::MCObjectFileInfo::getDwarfTUIndexSection
MCSection * getDwarfTUIndexSection() const
Definition: MCObjectFileInfo.h:337
llvm::MCObjectFileInfo::getXDataSection
MCSection * getXDataSection() const
Definition: MCObjectFileInfo.h:422
llvm::MCObjectFileInfo::RemarksSection
MCSection * RemarksSection
Remarks section.
Definition: MCObjectFileInfo.h:168
llvm::MCObjectFileInfo::DwarfInfoDWOSection
MCSection * DwarfInfoDWOSection
Definition: MCObjectFileInfo.h:109
llvm::MCObjectFileInfo::GEHContSection
MCSection * GEHContSection
Definition: MCObjectFileInfo.h:223
llvm::MCObjectFileInfo::DrectveSection
MCSection * DrectveSection
COFF specific sections.
Definition: MCObjectFileInfo.h:219
llvm::MCObjectFileInfo::DwarfStrOffSection
MCSection * DwarfStrOffSection
The DWARF v5 string offset and address table sections.
Definition: MCObjectFileInfo.h:120
llvm::MCObjectFileInfo::DataRelROSection
MCSection * DataRelROSection
Definition: MCObjectFileInfo.h:183
llvm::MCObjectFileInfo::TOCBaseSection
MCSection * TOCBaseSection
Definition: MCObjectFileInfo.h:232
llvm::GraphProgram::Name
Name
Definition: GraphWriter.h:50
llvm::MCObjectFileInfo::DwarfRnglistsSection
MCSection * DwarfRnglistsSection
The DWARF v5 range list section.
Definition: MCObjectFileInfo.h:123
llvm::MCObjectFileInfo::DataSection
MCSection * DataSection
Section directive for standard data.
Definition: MCObjectFileInfo.h:59
llvm::MCObjectFileInfo::DwarfAccelNamespaceSection
MCSection * DwarfAccelNamespaceSection
Definition: MCObjectFileInfo.h:105
llvm::MCObjectFileInfo::getOmitDwarfIfHaveCompactUnwind
bool getOmitDwarfIfHaveCompactUnwind() const
Definition: MCObjectFileInfo.h:252
llvm::MCObjectFileInfo::getDwarfMacroDWOSection
MCSection * getDwarfMacroDWOSection() const
Definition: MCObjectFileInfo.h:332
llvm::MCObjectFileInfo::MergeableConst32Section
MCSection * MergeableConst32Section
Definition: MCObjectFileInfo.h:187
llvm::MCObjectFileInfo::GIATsSection
MCSection * GIATsSection
Definition: MCObjectFileInfo.h:225
llvm::MCObjectFileInfo::DwarfDebugInlineSection
const MCSection * DwarfDebugInlineSection
Definition: MCObjectFileInfo.h:87
llvm::MCObjectFileInfo::getDwarfTypesDWOSection
MCSection * getDwarfTypesDWOSection() const
Definition: MCObjectFileInfo.h:318
llvm::MCObjectFileInfo::EHFrameSection
MCSection * EHFrameSection
EH frame section.
Definition: MCObjectFileInfo.h:173
llvm::MCObjectFileInfo::getEHFrameSection
MCSection * getEHFrameSection() const
Definition: MCObjectFileInfo.h:435
llvm::MCObjectFileInfo::getBSSSection
MCSection * getBSSSection() const
Definition: MCObjectFileInfo.h:269
llvm::MCObjectFileInfo::getDwarfTypesSection
MCSection * getDwarfTypesSection(uint64_t Hash) const
Definition: MCObjectFileInfo.h:315
llvm::MCObjectFileInfo::COFFDebugTypesSection
MCSection * COFFDebugTypesSection
Definition: MCObjectFileInfo.h:144
llvm::MCObjectFileInfo::getSupportsCompactUnwindWithoutEHFrame
bool getSupportsCompactUnwindWithoutEHFrame() const
Definition: MCObjectFileInfo.h:249
llvm::MCObjectFileInfo::getDwarfLineDWOSection
MCSection * getDwarfLineDWOSection() const
Definition: MCObjectFileInfo.h:321
llvm::MCObjectFileInfo::getDwarfAbbrevSection
MCSection * getDwarfAbbrevSection() const
Definition: MCObjectFileInfo.h:273
llvm::MCObjectFileInfo::getDwarfLineStrSection
MCSection * getDwarfLineStrSection() const
Definition: MCObjectFileInfo.h:279
llvm::MCObjectFileInfo::DataCoalSection
MCSection * DataCoalSection
Definition: MCObjectFileInfo.h:206
llvm::CodeModel::Large
@ Large
Definition: CodeGen.h:28
llvm::MCObjectFileInfo::DwarfAccelObjCSection
MCSection * DwarfAccelObjCSection
Definition: MCObjectFileInfo.h:104
llvm::MCObjectFileInfo::DwarfGnuPubTypesSection
MCSection * DwarfGnuPubTypesSection
Section for newer gnu pubtypes.
Definition: MCObjectFileInfo.h:138
llvm::MCObjectFileInfo::getDwarfAbbrevDWOSection
MCSection * getDwarfAbbrevDWOSection() const
Definition: MCObjectFileInfo.h:319
llvm::MCObjectFileInfo::getDwarfDebugInlineSection
const MCSection * getDwarfDebugInlineSection() const
Definition: MCObjectFileInfo.h:289
llvm::MCObjectFileInfo::DwarfTypesDWOSection
MCSection * DwarfTypesDWOSection
Definition: MCObjectFileInfo.h:110
llvm::MCObjectFileInfo::DwarfAccelNamesSection
MCSection * DwarfAccelNamesSection
Definition: MCObjectFileInfo.h:103
llvm::MCObjectFileInfo::ReadOnly16Section
MCSection * ReadOnly16Section
Definition: MCObjectFileInfo.h:234
llvm::MCObjectFileInfo::BSSSection
MCSection * BSSSection
Section that is default initialized to zero.
Definition: MCObjectFileInfo.h:62
llvm::MCObjectFileInfo::MergeableConst4Section
MCSection * MergeableConst4Section
Definition: MCObjectFileInfo.h:184
llvm::MCObjectFileInfo::TLSBSSSection
MCSection * TLSBSSSection
Section directive for Thread Local uninitialized data.
Definition: MCObjectFileInfo.h:159
llvm::MCObjectFileInfo::getMergeableConst8Section
const MCSection * getMergeableConst8Section() const
Definition: MCObjectFileInfo.h:371
llvm::MCObjectFileInfo::getSupportsWeakOmittedEHFrame
bool getSupportsWeakOmittedEHFrame() const
Definition: MCObjectFileInfo.h:246
llvm::MCObjectFileInfo::StackSizesSection
MCSection * StackSizesSection
Section containing metadata on function stack sizes.
Definition: MCObjectFileInfo.h:176
llvm::MCObjectFileInfo::getTLSBSSSection
MCSection * getTLSBSSSection() const
Definition: MCObjectFileInfo.h:352
llvm::MCObjectFileInfo::getDwarfStrSection
MCSection * getDwarfStrSection() const
Definition: MCObjectFileInfo.h:292
llvm::MCObjectFileInfo::DwarfGnuPubNamesSection
MCSection * DwarfGnuPubNamesSection
Section for newer gnu pubnames.
Definition: MCObjectFileInfo.h:136
llvm::MCObjectFileInfo::getDwarfMacinfoDWOSection
MCSection * getDwarfMacinfoDWOSection() const
Definition: MCObjectFileInfo.h:333
llvm::MCObjectFileInfo::DwarfMacinfoDWOSection
MCSection * DwarfMacinfoDWOSection
Definition: MCObjectFileInfo.h:116
llvm::MCObjectFileInfo::getDwarfAccelTypesSection
MCSection * getDwarfAccelTypesSection() const
Definition: MCObjectFileInfo.h:311
llvm::MCObjectFileInfo::StackMapSection
MCSection * StackMapSection
StackMap section.
Definition: MCObjectFileInfo.h:162
llvm::MCObjectFileInfo::PseudoProbeSection
MCSection * PseudoProbeSection
Section for pseudo probe information used by AutoFDO.
Definition: MCObjectFileInfo.h:179
llvm::MCObjectFileInfo::getDwarfRnglistsDWOSection
MCSection * getDwarfRnglistsDWOSection() const
Definition: MCObjectFileInfo.h:326
llvm::MCObjectFileInfo::getConstTextCoalSection
const MCSection * getConstTextCoalSection() const
Definition: MCObjectFileInfo.h:389
llvm::MCObjectFileInfo::DataCommonSection
MCSection * DataCommonSection
Definition: MCObjectFileInfo.h:208
llvm::MCObjectFileInfo::getTextCoalSection
MCSection * getTextCoalSection() const
Definition: MCObjectFileInfo.h:388
llvm::MCObjectFileInfo::DwarfCUIndexSection
MCSection * DwarfCUIndexSection
Definition: MCObjectFileInfo.h:132
llvm::MCObjectFileInfo::getEightByteConstantSection
const MCSection * getEightByteConstantSection() const
Definition: MCObjectFileInfo.h:402
llvm::MCObjectFileInfo::getSXDataSection
MCSection * getSXDataSection() const
Definition: MCObjectFileInfo.h:423
llvm::MCObjectFileInfo::setDarwinTargetVariantTriple
void setDarwinTargetVariantTriple(const Triple &T)
Definition: MCObjectFileInfo.h:471
llvm::MCObjectFileInfo::getDataCommonSection
const MCSection * getDataCommonSection() const
Definition: MCObjectFileInfo.h:397
llvm::MCObjectFileInfo::getConstDataSection
const MCSection * getConstDataSection() const
Definition: MCObjectFileInfo.h:392
llvm::MCObjectFileInfo::TLSTLVSection
MCSection * TLSTLVSection
Section for thread local structure information.
Definition: MCObjectFileInfo.h:195
llvm::MCObjectFileInfo::getDwarfLineSection
MCSection * getDwarfLineSection() const
Definition: MCObjectFileInfo.h:278
llvm::MCObjectFileInfo::getSwift5ReflectionSection
MCSection * getSwift5ReflectionSection(llvm::binaryformat::Swift5ReflectionSectionKind ReflSectionKind)
Definition: MCObjectFileInfo.h:440
llvm::MCObjectFileInfo::COFFDebugSymbolsSection
MCSection * COFFDebugSymbolsSection
Definition: MCObjectFileInfo.h:143
llvm::MCObjectFileInfo::getConstDataCoalSection
const MCSection * getConstDataCoalSection() const
Definition: MCObjectFileInfo.h:394
llvm::MCObjectFileInfo::getSDKVersion
const VersionTuple & getSDKVersion() const
Definition: MCObjectFileInfo.h:469
llvm::MCObjectFileInfo::getDwarfStrOffDWOSection
MCSection * getDwarfStrOffDWOSection() const
Definition: MCObjectFileInfo.h:323
llvm::MCObjectFileInfo::getDwarfInfoSection
MCSection * getDwarfInfoSection(uint64_t Hash) const
Definition: MCObjectFileInfo.h:275
llvm::MCObjectFileInfo::getRemarksSection
MCSection * getRemarksSection() const
Definition: MCObjectFileInfo.h:356
llvm::MCObjectFileInfo
Definition: MCObjectFileInfo.h:27
llvm::MCObjectFileInfo::getDwarfGnuPubNamesSection
MCSection * getDwarfGnuPubNamesSection() const
Definition: MCObjectFileInfo.h:283
llvm::MCObjectFileInfo::getCompactUnwindDwarfEHFrameOnly
unsigned getCompactUnwindDwarfEHFrameOnly() const
Definition: MCObjectFileInfo.h:262
llvm::MCObjectFileInfo::getMergeableConst4Section
const MCSection * getMergeableConst4Section() const
Definition: MCObjectFileInfo.h:368
llvm::MCObjectFileInfo::TextSection
MCSection * TextSection
Section directive for standard text.
Definition: MCObjectFileInfo.h:56