LLVM  14.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
230 
231 public:
232  void initMCObjectFileInfo(MCContext &MCCtx, bool PIC,
233  bool LargeCodeModel = false);
234  virtual ~MCObjectFileInfo();
235  MCContext &getContext() const { return *Ctx; }
236 
239  }
242  }
245  }
246 
249  }
250 
251  unsigned getFDEEncoding() const { return FDECFIEncoding; }
252 
255  }
256 
257  virtual unsigned getTextSectionAlignment() const { return 4; }
258  MCSection *getTextSection() const { return TextSection; }
259  MCSection *getDataSection() const { return DataSection; }
260  MCSection *getBSSSection() const { return BSSSection; }
262  MCSection *getLSDASection() const { return LSDASection; }
267  return getDwarfComdatSection(".debug_info", Hash);
268  }
276  }
279  }
282  }
291 
293  return DwarfDebugNamesSection;
294  }
296  return DwarfAccelNamesSection;
297  }
301  }
303  return DwarfAccelTypesSection;
304  }
307  return getDwarfComdatSection(".debug_types", Hash);
308  }
319  }
322  }
325  return DwarfMacinfoDWOSection;
326  }
330 
333  }
335  return COFFDebugTypesSection;
336  }
339  }
340 
342  const MCSection *getTLSDataSection() const { return TLSDataSection; }
344 
348 
349  MCSection *getStackSizesSection(const MCSection &TextSec) const;
350 
351  MCSection *getBBAddrMapSection(const MCSection &TextSec) const;
352 
353  MCSection *getPseudoProbeSection(const MCSection *TextSec) const;
354 
356 
357  // ELF specific sections.
360  return MergeableConst4Section;
361  }
363  return MergeableConst8Section;
364  }
367  }
370  }
371 
372  // MachO specific sections.
373  const MCSection *getTLSTLVSection() const { return TLSTLVSection; }
375  return TLSThreadInitSection;
376  }
377  const MCSection *getCStringSection() const { return CStringSection; }
378  const MCSection *getUStringSection() const { return UStringSection; }
381  return ConstTextCoalSection;
382  }
383  const MCSection *getConstDataSection() const { return ConstDataSection; }
384  const MCSection *getDataCoalSection() const { return DataCoalSection; }
386  return ConstDataCoalSection;
387  }
392  }
395  }
398  }
401  }
404  }
407  }
408 
409  // COFF specific sections.
418 
419  // XCOFF specific sections
421 
423 
424  bool isPositionIndependent() const { return PositionIndependent; }
425 
426 private:
427  bool PositionIndependent = false;
428  MCContext *Ctx = nullptr;
429  VersionTuple SDKVersion;
430 
431  void initMachOMCObjectFileInfo(const Triple &T);
432  void initELFMCObjectFileInfo(const Triple &T, bool Large);
433  void initGOFFMCObjectFileInfo(const Triple &T);
434  void initCOFFMCObjectFileInfo(const Triple &T);
435  void initWasmMCObjectFileInfo(const Triple &T);
436  void initXCOFFMCObjectFileInfo(const Triple &T);
437  MCSection *getDwarfComdatSection(const char *Name, uint64_t Hash) const;
438 
439 public:
440  void setSDKVersion(const VersionTuple &TheSDKVersion) {
441  SDKVersion = TheSDKVersion;
442  }
443 
444  const VersionTuple &getSDKVersion() const { return SDKVersion; }
445 };
446 
447 } // end namespace llvm
448 
449 #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:286
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:316
llvm::MCObjectFileInfo::~MCObjectFileInfo
virtual ~MCObjectFileInfo()
Definition: MCObjectFileInfo.cpp:984
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:298
llvm::MCObjectFileInfo::getDwarfFrameSection
MCSection * getDwarfFrameSection() const
Definition: MCObjectFileInfo.h:271
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::MCObjectFileInfo::getCStringSection
const MCSection * getCStringSection() const
Definition: MCObjectFileInfo.h:377
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:290
llvm::MCObjectFileInfo::OmitDwarfIfHaveCompactUnwind
bool OmitDwarfIfHaveCompactUnwind
OmitDwarfIfHaveCompactUnwind - True if the target object file supports having some functions with com...
Definition: MCObjectFileInfo.h:43
llvm::MCObjectFileInfo::getTextSectionAlignment
virtual unsigned getTextSectionAlignment() const
Definition: MCObjectFileInfo.h:257
llvm::MCObjectFileInfo::EightByteConstantSection
MCSection * EightByteConstantSection
Definition: MCObjectFileInfo.h:210
llvm::MCObjectFileInfo::getCommDirectiveSupportsAlignment
bool getCommDirectiveSupportsAlignment() const
Definition: MCObjectFileInfo.h:247
llvm::MCObjectFileInfo::getDwarfPubTypesSection
MCSection * getDwarfPubTypesSection() const
Definition: MCObjectFileInfo.h:273
llvm::MCObjectFileInfo::getTOCBaseSection
MCSection * getTOCBaseSection() const
Definition: MCObjectFileInfo.h:420
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:72
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:288
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:342
llvm::MCObjectFileInfo::getDwarfCUIndexSection
MCSection * getDwarfCUIndexSection() const
Definition: MCObjectFileInfo.h:327
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:405
VersionTuple.h
llvm::MCObjectFileInfo::getTLSThreadInitSection
const MCSection * getTLSThreadInitSection() const
Definition: MCObjectFileInfo.h:374
llvm::MCObjectFileInfo::ThreadLocalPointerSection
MCSection * ThreadLocalPointerSection
Definition: MCObjectFileInfo.h:214
llvm::MCObjectFileInfo::getCOFFDebugSymbolsSection
MCSection * getCOFFDebugSymbolsSection() const
Definition: MCObjectFileInfo.h:331
llvm::MCObjectFileInfo::DataBSSSection
MCSection * DataBSSSection
Definition: MCObjectFileInfo.h:208
llvm::MCObjectFileInfo::getFDEEncoding
unsigned getFDEEncoding() const
Definition: MCObjectFileInfo.h:251
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
PIC
PassInstrumentationCallbacks PIC
Definition: PassBuilderBindings.cpp:55
llvm::MCObjectFileInfo::DwarfTUIndexSection
MCSection * DwarfTUIndexSection
Definition: MCObjectFileInfo.h:132
llvm::MCObjectFileInfo::getDwarfLocSection
MCSection * getDwarfLocSection() const
Definition: MCObjectFileInfo.h:284
llvm::MCObjectFileInfo::getPseudoProbeSection
MCSection * getPseudoProbeSection(const MCSection *TextSec) const
Definition: MCObjectFileInfo.cpp:1091
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:315
llvm::MCObjectFileInfo::getFaultMapSection
MCSection * getFaultMapSection() const
Definition: MCObjectFileInfo.h:346
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:365
llvm::MCObjectFileInfo::getDwarfGnuPubTypesSection
MCSection * getDwarfGnuPubTypesSection() const
Definition: MCObjectFileInfo.h:277
llvm::MCObjectFileInfo::getContext
MCContext & getContext() const
Definition: MCObjectFileInfo.h:235
llvm::MCObjectFileInfo::getDwarfInfoSection
MCSection * getDwarfInfoSection() const
Definition: MCObjectFileInfo.h:265
llvm::MCObjectFileInfo::DwarfFrameSection
MCSection * DwarfFrameSection
Definition: MCObjectFileInfo.h:84
llvm::MCObjectFileInfo::getGFIDsSection
MCSection * getGFIDsSection() const
Definition: MCObjectFileInfo.h:415
llvm::MCObjectFileInfo::getDwarfLoclistsDWOSection
MCSection * getDwarfLoclistsDWOSection() const
Definition: MCObjectFileInfo.h:320
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:399
llvm::MCObjectFileInfo::getDwarfPubNamesSection
MCSection * getDwarfPubNamesSection() const
Definition: MCObjectFileInfo.h:272
llvm::MCObjectFileInfo::ReadOnly8Section
MCSection * ReadOnly8Section
Definition: MCObjectFileInfo.h:228
llvm::MCObjectFileInfo::getDataRelROSection
MCSection * getDataRelROSection() const
Definition: MCObjectFileInfo.h:358
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:259
llvm::MCObjectFileInfo::getTLSExtraDataSection
MCSection * getTLSExtraDataSection() const
Definition: MCObjectFileInfo.h:341
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:285
llvm::MCObjectFileInfo::getGLJMPSection
MCSection * getGLJMPSection() const
Definition: MCObjectFileInfo.h:417
llvm::MCObjectFileInfo::MergeableConst8Section
MCSection * MergeableConst8Section
Definition: MCObjectFileInfo.h:184
llvm::MCObjectFileInfo::getDataBSSSection
MCSection * getDataBSSSection() const
Definition: MCObjectFileInfo.h:389
MCSymbol.h
llvm::MCObjectFileInfo::isPositionIndependent
bool isPositionIndependent() const
Definition: MCObjectFileInfo.h:424
llvm::MCObjectFileInfo::getDwarfMacinfoSection
MCSection * getDwarfMacinfoSection() const
Definition: MCObjectFileInfo.h:289
llvm::MCObjectFileInfo::getStackMapSection
MCSection * getStackMapSection() const
Definition: MCObjectFileInfo.h:345
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:305
llvm::MCObjectFileInfo::DwarfAccelTypesSection
MCSection * DwarfAccelTypesSection
Definition: MCObjectFileInfo.h:105
llvm::MCObjectFileInfo::getCompactUnwindSection
MCSection * getCompactUnwindSection() const
Definition: MCObjectFileInfo.h:263
llvm::MCObjectFileInfo::getDwarfLocDWOSection
MCSection * getDwarfLocDWOSection() const
Definition: MCObjectFileInfo.h:313
llvm::MCObjectFileInfo::DwarfStrOffDWOSection
MCSection * DwarfStrOffDWOSection
Definition: MCObjectFileInfo.h:114
llvm::MCObjectFileInfo::getStackSizesSection
MCSection * getStackSizesSection(const MCSection &TextSec) const
Definition: MCObjectFileInfo.cpp:1053
llvm::MCObjectFileInfo::GLJMPSection
MCSection * GLJMPSection
Definition: MCObjectFileInfo.h:224
llvm::MCObjectFileInfo::getFourByteConstantSection
const MCSection * getFourByteConstantSection() const
Definition: MCObjectFileInfo.h:390
llvm::MCObjectFileInfo::DwarfStrDWOSection
MCSection * DwarfStrDWOSection
Definition: MCObjectFileInfo.h:111
llvm::MCObjectFileInfo::getTLSTLVSection
const MCSection * getTLSTLVSection() const
Definition: MCObjectFileInfo.h:373
llvm::MCObjectFileInfo::setSDKVersion
void setSDKVersion(const VersionTuple &TheSDKVersion)
Definition: MCObjectFileInfo.h:440
llvm::MCObjectFileInfo::getCOFFGlobalTypeHashesSection
MCSection * getCOFFGlobalTypeHashesSection() const
Definition: MCObjectFileInfo.h:337
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:29
llvm::MCObjectFileInfo::getDwarfStrDWOSection
MCSection * getDwarfStrDWOSection() const
Definition: MCObjectFileInfo.h:311
llvm::MCObjectFileInfo::getLSDASection
MCSection * getLSDASection() const
Definition: MCObjectFileInfo.h:262
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:258
llvm::MCObjectFileInfo::getDwarfAccelNamespaceSection
MCSection * getDwarfAccelNamespaceSection() const
Definition: MCObjectFileInfo.h:299
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:1107
llvm::MCObjectFileInfo::getDwarfRnglistsSection
MCSection * getDwarfRnglistsSection() const
Definition: MCObjectFileInfo.h:287
llvm::MCObjectFileInfo::COFFGlobalTypeHashesSection
MCSection * COFFGlobalTypeHashesSection
Definition: MCObjectFileInfo.h:144
llvm::MCObjectFileInfo::getMergeableConst32Section
const MCSection * getMergeableConst32Section() const
Definition: MCObjectFileInfo.h:368
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:329
uint64_t
llvm::MCObjectFileInfo::getGIATsSection
MCSection * getGIATsSection() const
Definition: MCObjectFileInfo.h:416
llvm::MCObjectFileInfo::getDwarfDebugNamesSection
MCSection * getDwarfDebugNamesSection() const
Definition: MCObjectFileInfo.h:292
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:384
llvm::MCObjectFileInfo::getDwarfAccelNamesSection
MCSection * getDwarfAccelNamesSection() const
Definition: MCObjectFileInfo.h:295
llvm::MCObjectFileInfo::getNonLazySymbolPointerSection
MCSection * getNonLazySymbolPointerSection() const
Definition: MCObjectFileInfo.h:402
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:414
llvm::MCObjectFileInfo::DwarfLineStrSection
MCSection * DwarfLineStrSection
Definition: MCObjectFileInfo.h:83
llvm::MCObjectFileInfo::getSixteenByteConstantSection
const MCSection * getSixteenByteConstantSection() const
Definition: MCObjectFileInfo.h:396
llvm::MCObjectFileInfo::DwarfLocSection
MCSection * DwarfLocSection
Definition: MCObjectFileInfo.h:88
llvm::MCObjectFileInfo::getCOFFDebugTypesSection
MCSection * getCOFFDebugTypesSection() const
Definition: MCObjectFileInfo.h:334
llvm::MCObjectFileInfo::initMCObjectFileInfo
void initMCObjectFileInfo(MCContext &MCCtx, bool PIC, bool LargeCodeModel=false)
Definition: MCObjectFileInfo.cpp:986
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:378
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:58
llvm::MCObjectFileInfo::getBBAddrMapSection
MCSection * getBBAddrMapSection(const MCSection &TextSec) const
Definition: MCObjectFileInfo.cpp:1071
llvm::MCObjectFileInfo::getDrectveSection
MCSection * getDrectveSection() const
Definition: MCObjectFileInfo.h:410
llvm::MCObjectFileInfo::getReadOnlySection
MCSection * getReadOnlySection() const
Definition: MCObjectFileInfo.h:261
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:411
llvm::MCObjectFileInfo::getDwarfTUIndexSection
MCSection * getDwarfTUIndexSection() const
Definition: MCObjectFileInfo.h:328
llvm::MCObjectFileInfo::getXDataSection
MCSection * getXDataSection() const
Definition: MCObjectFileInfo.h:412
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:243
llvm::MCObjectFileInfo::getDwarfMacroDWOSection
MCSection * getDwarfMacroDWOSection() const
Definition: MCObjectFileInfo.h:323
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:309
llvm::MCObjectFileInfo::EHFrameSection
MCSection * EHFrameSection
EH frame section.
Definition: MCObjectFileInfo.h:172
llvm::MCObjectFileInfo::getEHFrameSection
MCSection * getEHFrameSection() const
Definition: MCObjectFileInfo.h:422
llvm::MCObjectFileInfo::getBSSSection
MCSection * getBSSSection() const
Definition: MCObjectFileInfo.h:260
llvm::MCObjectFileInfo::getDwarfTypesSection
MCSection * getDwarfTypesSection(uint64_t Hash) const
Definition: MCObjectFileInfo.h:306
llvm::MCObjectFileInfo::COFFDebugTypesSection
MCSection * COFFDebugTypesSection
Definition: MCObjectFileInfo.h:143
llvm::MCObjectFileInfo::getSupportsCompactUnwindWithoutEHFrame
bool getSupportsCompactUnwindWithoutEHFrame() const
Definition: MCObjectFileInfo.h:240
llvm::MCObjectFileInfo::getDwarfLineDWOSection
MCSection * getDwarfLineDWOSection() const
Definition: MCObjectFileInfo.h:312
llvm::MCObjectFileInfo::getDwarfAbbrevSection
MCSection * getDwarfAbbrevSection() const
Definition: MCObjectFileInfo.h:264
CodeGen.h
llvm::MCObjectFileInfo::getDwarfLineStrSection
MCSection * getDwarfLineStrSection() const
Definition: MCObjectFileInfo.h:270
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:310
llvm::MCObjectFileInfo::getDwarfDebugInlineSection
const MCSection * getDwarfDebugInlineSection() const
Definition: MCObjectFileInfo.h:280
llvm::MCObjectFileInfo::DwarfTypesDWOSection
MCSection * DwarfTypesDWOSection
Definition: MCObjectFileInfo.h:109
llvm::MCObjectFileInfo::DwarfAccelNamesSection
MCSection * DwarfAccelNamesSection
Definition: MCObjectFileInfo.h:102
llvm::MCObjectFileInfo::ReadOnly16Section
MCSection * ReadOnly16Section
Definition: MCObjectFileInfo.h:229
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:362
llvm::MCObjectFileInfo::getSupportsWeakOmittedEHFrame
bool getSupportsWeakOmittedEHFrame() const
Definition: MCObjectFileInfo.h:237
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:343
llvm::MCObjectFileInfo::getDwarfStrSection
MCSection * getDwarfStrSection() const
Definition: MCObjectFileInfo.h:283
llvm::MCObjectFileInfo::DwarfGnuPubNamesSection
MCSection * DwarfGnuPubNamesSection
Section for newer gnu pubnames.
Definition: MCObjectFileInfo.h:135
llvm::MCObjectFileInfo::getDwarfMacinfoDWOSection
MCSection * getDwarfMacinfoDWOSection() const
Definition: MCObjectFileInfo.h:324
llvm::MCObjectFileInfo::DwarfMacinfoDWOSection
MCSection * DwarfMacinfoDWOSection
Definition: MCObjectFileInfo.h:115
llvm::MCObjectFileInfo::getDwarfAccelTypesSection
MCSection * getDwarfAccelTypesSection() const
Definition: MCObjectFileInfo.h:302
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:317
llvm::MCObjectFileInfo::getConstTextCoalSection
const MCSection * getConstTextCoalSection() const
Definition: MCObjectFileInfo.h:380
llvm::MCObjectFileInfo::DataCommonSection
MCSection * DataCommonSection
Definition: MCObjectFileInfo.h:207
llvm::MCObjectFileInfo::getTextCoalSection
MCSection * getTextCoalSection() const
Definition: MCObjectFileInfo.h:379
llvm::MCObjectFileInfo::DwarfCUIndexSection
MCSection * DwarfCUIndexSection
Definition: MCObjectFileInfo.h:131
llvm::MCObjectFileInfo::getEightByteConstantSection
const MCSection * getEightByteConstantSection() const
Definition: MCObjectFileInfo.h:393
llvm::MCObjectFileInfo::getSXDataSection
MCSection * getSXDataSection() const
Definition: MCObjectFileInfo.h:413
llvm::MCObjectFileInfo::getDataCommonSection
const MCSection * getDataCommonSection() const
Definition: MCObjectFileInfo.h:388
llvm::MCObjectFileInfo::getConstDataSection
const MCSection * getConstDataSection() const
Definition: MCObjectFileInfo.h:383
llvm::MCObjectFileInfo::TLSTLVSection
MCSection * TLSTLVSection
Section for thread local structure information.
Definition: MCObjectFileInfo.h:194
llvm::MCObjectFileInfo::getDwarfLineSection
MCSection * getDwarfLineSection() const
Definition: MCObjectFileInfo.h:269
llvm::MCObjectFileInfo::COFFDebugSymbolsSection
MCSection * COFFDebugSymbolsSection
Definition: MCObjectFileInfo.h:142
llvm::MCObjectFileInfo::getConstDataCoalSection
const MCSection * getConstDataCoalSection() const
Definition: MCObjectFileInfo.h:385
llvm::MCObjectFileInfo::getSDKVersion
const VersionTuple & getSDKVersion() const
Definition: MCObjectFileInfo.h:444
llvm::MCObjectFileInfo::getDwarfStrOffDWOSection
MCSection * getDwarfStrOffDWOSection() const
Definition: MCObjectFileInfo.h:314
llvm::MCObjectFileInfo::getDwarfInfoSection
MCSection * getDwarfInfoSection(uint64_t Hash) const
Definition: MCObjectFileInfo.h:266
llvm::MCObjectFileInfo::getRemarksSection
MCSection * getRemarksSection() const
Definition: MCObjectFileInfo.h:347
llvm::MCObjectFileInfo
Definition: MCObjectFileInfo.h:26
llvm::MCObjectFileInfo::getDwarfGnuPubNamesSection
MCSection * getDwarfGnuPubNamesSection() const
Definition: MCObjectFileInfo.h:274
llvm::MCObjectFileInfo::getCompactUnwindDwarfEHFrameOnly
unsigned getCompactUnwindDwarfEHFrameOnly() const
Definition: MCObjectFileInfo.h:253
llvm::MCObjectFileInfo::getMergeableConst4Section
const MCSection * getMergeableConst4Section() const
Definition: MCObjectFileInfo.h:359
llvm::MCObjectFileInfo::TextSection
MCSection * TextSection
Section directive for standard text.
Definition: MCObjectFileInfo.h:55