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