1 //===-- llvm/Target/TargetAsmInfo.h - Asm info ------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains a class to be used as the basis for target specific
11 // asm writers. This class primarily takes care of global printing constants,
12 // which are used in very similar ways across all targets.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_TARGET_ASM_INFO_H
17 #define LLVM_TARGET_ASM_INFO_H
19 #include "llvm/Support/DataTypes.h"
22 // DWARF encoding query type
23 namespace DwarfEncoding {
31 namespace SectionKind {
33 Unknown = 0, ///< Custom section
34 Text, ///< Text section
35 Data, ///< Data section
37 ROData, ///< Readonly data section
38 RODataMergeStr, ///< Readonly data section (mergeable strings)
39 RODataMergeConst, ///< Readonly data section (mergeable constants)
40 ThreadData, ///< Initialized TLS data objects
41 ThreadBSS ///< Uninitialized TLS data objects
45 namespace SectionFlags {
48 Code = 1 << 0, ///< Section contains code
49 Writeable = 1 << 1, ///< Section is writeable
50 BSS = 1 << 2, ///< Section contains only zeroes
51 Mergeable = 1 << 3, ///< Section contains mergeable data
52 Strings = 1 << 4, ///< Section contains null-terminated strings
53 TLS = 1 << 5, ///< Section contains thread-local data
54 Debug = 1 << 6, ///< Section contains debug data
55 Linkonce = 1 << 7, ///< Section is linkonce
57 // Some gap for future flags
58 Named = 1 << 23, ///< Section is named
59 EntitySize = 0xFF << 24 ///< Entity size for mergeable sections
62 static inline unsigned getEntitySize(unsigned Flags) {
63 return (Flags >> 24) & 0xFF;
66 static inline unsigned setEntitySize(unsigned Flags, unsigned Size) {
67 return ((Flags & ~EntitySize) | ((Size & 0xFF) << 24));
75 /// TargetAsmInfo - This class is intended to be used as a base class for asm
76 /// properties and features specific to the target.
79 //===------------------------------------------------------------------===//
80 // Properties to be set by the target writer, used to configure asm printer.
83 /// TextSection - Section directive for standard text.
85 const char *TextSection; // Defaults to ".text".
87 /// DataSection - Section directive for standard data.
89 const char *DataSection; // Defaults to ".data".
91 /// BSSSection - Section directive for uninitialized data. Null if this
92 /// target doesn't support a BSS section.
94 const char *BSSSection; // Default to ".bss".
96 /// TLSDataSection - Section directive for Thread Local data.
98 const char *TLSDataSection;// Defaults to ".section .tdata,"awT",@progbits".
100 /// TLSBSSSection - Section directive for Thread Local uninitialized data.
101 /// Null if this target doesn't support a BSS section.
103 const char *TLSBSSSection;// Default to ".section .tbss,"awT",@nobits".
105 /// ZeroFillDirective - Directive for emitting a global to the ZeroFill
106 /// section on this target. Null if this target doesn't support zerofill.
107 const char *ZeroFillDirective; // Default is null.
109 /// NonexecutableStackDirective - Directive for declaring to the
110 /// linker and beyond that the emitted code does not require stack
111 /// memory to be executable.
112 const char *NonexecutableStackDirective; // Default is null.
114 /// NeedsSet - True if target asm treats expressions in data directives
115 /// as linktime-relocatable. For assembly-time computation, we need to
116 /// use a .set. Thus:
119 /// is computed at assembly time, while
121 /// is relocated if the relative locations of x and y change at linktime.
122 /// We want both these things in different places.
123 bool NeedsSet; // Defaults to false.
125 /// MaxInstLength - This is the maximum possible length of an instruction,
126 /// which is needed to compute the size of an inline asm.
127 unsigned MaxInstLength; // Defaults to 4.
129 /// PCSymbol - The symbol used to represent the current PC. Used in PC
130 /// relative expressions.
131 const char *PCSymbol; // Defaults to "$".
133 /// SeparatorChar - This character, if specified, is used to separate
134 /// instructions from each other when on the same line. This is used to
135 /// measure inline asm instructions.
136 char SeparatorChar; // Defaults to ';'
138 /// CommentString - This indicates the comment character used by the
140 const char *CommentString; // Defaults to "#"
142 /// GlobalPrefix - If this is set to a non-empty string, it is prepended
143 /// onto all global symbols. This is often used for "_" or ".".
144 const char *GlobalPrefix; // Defaults to ""
146 /// PrivateGlobalPrefix - This prefix is used for globals like constant
147 /// pool entries that are completely private to the .o file and should not
148 /// have names in the .o file. This is often "." or "L".
149 const char *PrivateGlobalPrefix; // Defaults to "."
151 /// JumpTableSpecialLabelPrefix - If not null, a extra (dead) label is
152 /// emitted before jump tables with the specified prefix.
153 const char *JumpTableSpecialLabelPrefix; // Default to null.
155 /// GlobalVarAddrPrefix/Suffix - If these are nonempty, these strings
156 /// will enclose any GlobalVariable (that isn't a function)
158 const char *GlobalVarAddrPrefix; // Defaults to ""
159 const char *GlobalVarAddrSuffix; // Defaults to ""
161 /// FunctionAddrPrefix/Suffix - If these are nonempty, these strings
162 /// will enclose any GlobalVariable that points to a function.
163 /// For example, this is used by the IA64 backend to materialize
164 /// function descriptors, by decorating the ".data8" object with the
165 /// @verbatim @fptr( ) @endverbatim
166 /// link-relocation operator.
168 const char *FunctionAddrPrefix; // Defaults to ""
169 const char *FunctionAddrSuffix; // Defaults to ""
171 /// PersonalityPrefix/Suffix - If these are nonempty, these strings will
172 /// enclose any personality function in the common frame section.
174 const char *PersonalityPrefix; // Defaults to ""
175 const char *PersonalitySuffix; // Defaults to ""
177 /// NeedsIndirectEncoding - If set, we need to set the indirect encoding bit
180 bool NeedsIndirectEncoding; // Defaults to false
182 /// InlineAsmStart/End - If these are nonempty, they contain a directive to
183 /// emit before and after an inline assembly statement.
184 const char *InlineAsmStart; // Defaults to "#APP\n"
185 const char *InlineAsmEnd; // Defaults to "#NO_APP\n"
187 /// AssemblerDialect - Which dialect of an assembler variant to use.
188 unsigned AssemblerDialect; // Defaults to 0
190 /// StringConstantPrefix - Prefix for FEs to use when generating unnamed
191 /// constant strings. These names get run through the Mangler later; if
192 /// you want the Mangler not to add the GlobalPrefix as well,
193 /// use '\1' as the first character.
194 const char *StringConstantPrefix; // Defaults to ".str"
196 //===--- Data Emission Directives -------------------------------------===//
198 /// ZeroDirective - this should be set to the directive used to get some
199 /// number of zero bytes emitted to the current section. Common cases are
200 /// "\t.zero\t" and "\t.space\t". If this is set to null, the
201 /// Data*bitsDirective's will be used to emit zero bytes.
202 const char *ZeroDirective; // Defaults to "\t.zero\t"
203 const char *ZeroDirectiveSuffix; // Defaults to ""
205 /// AsciiDirective - This directive allows emission of an ascii string with
206 /// the standard C escape characters embedded into it.
207 const char *AsciiDirective; // Defaults to "\t.ascii\t"
209 /// AscizDirective - If not null, this allows for special handling of
210 /// zero terminated strings on this target. This is commonly supported as
211 /// ".asciz". If a target doesn't support this, it can be set to null.
212 const char *AscizDirective; // Defaults to "\t.asciz\t"
214 /// DataDirectives - These directives are used to output some unit of
215 /// integer data to the current section. If a data directive is set to
216 /// null, smaller data directives will be used to emit the large sizes.
217 const char *Data8bitsDirective; // Defaults to "\t.byte\t"
218 const char *Data16bitsDirective; // Defaults to "\t.short\t"
219 const char *Data32bitsDirective; // Defaults to "\t.long\t"
220 const char *Data64bitsDirective; // Defaults to "\t.quad\t"
222 //===--- Alignment Information ----------------------------------------===//
224 /// AlignDirective - The directive used to emit round up to an alignment
227 const char *AlignDirective; // Defaults to "\t.align\t"
229 /// AlignmentIsInBytes - If this is true (the default) then the asmprinter
230 /// emits ".align N" directives, where N is the number of bytes to align to.
231 /// Otherwise, it emits ".align log2(N)", e.g. 3 to align to an 8 byte
233 bool AlignmentIsInBytes; // Defaults to true
235 /// TextAlignFillValue - If non-zero, this is used to fill the executable
236 /// space created as the result of a alignment directive.
237 unsigned TextAlignFillValue;
239 //===--- Section Switching Directives ---------------------------------===//
241 /// SwitchToSectionDirective - This is the directive used when we want to
242 /// emit a global to an arbitrary section. The section name is emited after
244 const char *SwitchToSectionDirective; // Defaults to "\t.section\t"
246 /// TextSectionStartSuffix - This is printed after each start of section
247 /// directive for text sections.
248 const char *TextSectionStartSuffix; // Defaults to "".
250 /// DataSectionStartSuffix - This is printed after each start of section
251 /// directive for data sections.
252 const char *DataSectionStartSuffix; // Defaults to "".
254 /// SectionEndDirectiveSuffix - If non-null, the asm printer will close each
255 /// section with the section name and this suffix printed.
256 const char *SectionEndDirectiveSuffix;// Defaults to null.
258 /// ConstantPoolSection - This is the section that we SwitchToSection right
259 /// before emitting the constant pool for a function.
260 const char *ConstantPoolSection; // Defaults to "\t.section .rodata"
262 /// JumpTableDataSection - This is the section that we SwitchToSection right
263 /// before emitting the jump tables for a function when the relocation model
265 const char *JumpTableDataSection; // Defaults to "\t.section .rodata"
267 /// JumpTableDirective - if non-null, the directive to emit before a jump
269 const char *JumpTableDirective;
271 /// CStringSection - If not null, this allows for special handling of
272 /// cstring constants (null terminated string that does not contain any
273 /// other null bytes) on this target. This is commonly supported as
275 const char *CStringSection; // Defaults to NULL
277 /// StaticCtorsSection - This is the directive that is emitted to switch to
278 /// a section to emit the static constructor list.
279 /// Defaults to "\t.section .ctors,\"aw\",@progbits".
280 const char *StaticCtorsSection;
282 /// StaticDtorsSection - This is the directive that is emitted to switch to
283 /// a section to emit the static destructor list.
284 /// Defaults to "\t.section .dtors,\"aw\",@progbits".
285 const char *StaticDtorsSection;
287 /// FourByteConstantSection, EightByteConstantSection,
288 /// SixteenByteConstantSection - These are special sections where we place
289 /// 4-, 8-, and 16- byte constant literals.
290 const char *FourByteConstantSection;
291 const char *EightByteConstantSection;
292 const char *SixteenByteConstantSection;
294 /// ReadOnlySection - This is the directive that is emitted to switch to a
295 /// read-only section for constant data (e.g. data declared const,
297 const char *ReadOnlySection; // Defaults to NULL
299 //===--- Global Variable Emission Directives --------------------------===//
301 /// GlobalDirective - This is the directive used to declare a global entity.
303 const char *GlobalDirective; // Defaults to NULL.
305 /// SetDirective - This is the name of a directive that can be used to tell
306 /// the assembler to set the value of a variable to some expression.
307 const char *SetDirective; // Defaults to null.
309 /// LCOMMDirective - This is the name of a directive (if supported) that can
310 /// be used to efficiently declare a local (internal) block of zero
311 /// initialized data in the .bss/.data section. The syntax expected is:
312 /// @verbatim <LCOMMDirective> SYMBOLNAME LENGTHINBYTES, ALIGNMENT
314 const char *LCOMMDirective; // Defaults to null.
316 const char *COMMDirective; // Defaults to "\t.comm\t".
318 /// COMMDirectiveTakesAlignment - True if COMMDirective take a third
319 /// argument that specifies the alignment of the declaration.
320 bool COMMDirectiveTakesAlignment; // Defaults to true.
322 /// HasDotTypeDotSizeDirective - True if the target has .type and .size
323 /// directives, this is true for most ELF targets.
324 bool HasDotTypeDotSizeDirective; // Defaults to true.
326 /// UsedDirective - This directive, if non-null, is used to declare a global
327 /// as being used somehow that the assembler can't see. This prevents dead
328 /// code elimination on some targets.
329 const char *UsedDirective; // Defaults to null.
331 /// WeakRefDirective - This directive, if non-null, is used to declare a
332 /// global as being a weak undefined symbol.
333 const char *WeakRefDirective; // Defaults to null.
335 /// WeakDefDirective - This directive, if non-null, is used to declare a
336 /// global as being a weak defined symbol.
337 const char *WeakDefDirective; // Defaults to null.
339 /// HiddenDirective - This directive, if non-null, is used to declare a
340 /// global or function as having hidden visibility.
341 const char *HiddenDirective; // Defaults to "\t.hidden\t".
343 /// ProtectedDirective - This directive, if non-null, is used to declare a
344 /// global or function as having protected visibility.
345 const char *ProtectedDirective; // Defaults to "\t.protected\t".
347 //===--- Dwarf Emission Directives -----------------------------------===//
349 /// AbsoluteDebugSectionOffsets - True if we should emit abolute section
350 /// offsets for debug information. Defaults to false.
351 bool AbsoluteDebugSectionOffsets;
353 /// AbsoluteEHSectionOffsets - True if we should emit abolute section
354 /// offsets for EH information. Defaults to false.
355 bool AbsoluteEHSectionOffsets;
357 /// HasLEB128 - True if target asm supports leb128 directives.
359 bool HasLEB128; // Defaults to false.
361 /// hasDotLocAndDotFile - True if target asm supports .loc and .file
362 /// directives for emitting debugging information.
364 bool HasDotLocAndDotFile; // Defaults to false.
366 /// SupportsDebugInformation - True if target supports emission of debugging
368 bool SupportsDebugInformation;
370 /// SupportsExceptionHandling - True if target supports
371 /// exception handling.
373 bool SupportsExceptionHandling; // Defaults to false.
375 /// RequiresFrameSection - true if the Dwarf2 output needs a frame section
377 bool DwarfRequiresFrameSection; // Defaults to true.
379 /// GlobalEHDirective - This is the directive used to make exception frame
380 /// tables globally visible.
382 const char *GlobalEHDirective; // Defaults to NULL.
384 /// SupportsWeakEmptyEHFrame - True if target assembler and linker will
385 /// handle a weak_definition of constant 0 for an omitted EH frame.
386 bool SupportsWeakOmittedEHFrame; // Defaults to true.
388 /// DwarfSectionOffsetDirective - Special section offset directive.
389 const char* DwarfSectionOffsetDirective; // Defaults to NULL
391 /// DwarfAbbrevSection - Section directive for Dwarf abbrev.
393 const char *DwarfAbbrevSection; // Defaults to ".debug_abbrev".
395 /// DwarfInfoSection - Section directive for Dwarf info.
397 const char *DwarfInfoSection; // Defaults to ".debug_info".
399 /// DwarfLineSection - Section directive for Dwarf info.
401 const char *DwarfLineSection; // Defaults to ".debug_line".
403 /// DwarfFrameSection - Section directive for Dwarf info.
405 const char *DwarfFrameSection; // Defaults to ".debug_frame".
407 /// DwarfPubNamesSection - Section directive for Dwarf info.
409 const char *DwarfPubNamesSection; // Defaults to ".debug_pubnames".
411 /// DwarfPubTypesSection - Section directive for Dwarf info.
413 const char *DwarfPubTypesSection; // Defaults to ".debug_pubtypes".
415 /// DwarfStrSection - Section directive for Dwarf info.
417 const char *DwarfStrSection; // Defaults to ".debug_str".
419 /// DwarfLocSection - Section directive for Dwarf info.
421 const char *DwarfLocSection; // Defaults to ".debug_loc".
423 /// DwarfARangesSection - Section directive for Dwarf info.
425 const char *DwarfARangesSection; // Defaults to ".debug_aranges".
427 /// DwarfRangesSection - Section directive for Dwarf info.
429 const char *DwarfRangesSection; // Defaults to ".debug_ranges".
431 /// DwarfMacInfoSection - Section directive for Dwarf info.
433 const char *DwarfMacInfoSection; // Defaults to ".debug_macinfo".
435 /// DwarfEHFrameSection - Section directive for Exception frames.
437 const char *DwarfEHFrameSection; // Defaults to ".eh_frame".
439 /// DwarfExceptionSection - Section directive for Exception table.
441 const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
443 //===--- CBE Asm Translation Table -----------------------------------===//
445 const char *const *AsmTransCBE; // Defaults to empty
449 virtual ~TargetAsmInfo();
451 /// Measure the specified inline asm to determine an approximation of its
453 virtual unsigned getInlineAsmLength(const char *Str) const;
455 /// ExpandInlineAsm - This hook allows the target to expand an inline asm
456 /// call to be explicit llvm code if it wants to. This is useful for
457 /// turning simple inline asms into LLVM intrinsics, which gives the
458 /// compiler more information about the behavior of the code.
459 virtual bool ExpandInlineAsm(CallInst *CI) const {
463 /// PreferredEHDataFormat - This hook allows the target to select data
464 /// format used for encoding pointers in exception handling data. Reason is
465 /// 0 for data, 1 for code labels, 2 for function pointers. Global is true
466 /// if the symbol can be relocated.
467 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
470 /// SectionKindForGlobal - This hook allows the target to select proper
471 /// section kind used for global emission.
472 virtual SectionKind::Kind
473 SectionKindForGlobal(const GlobalValue *GV) const;
476 /// SectionFlagsForGlobal - This hook allows the target to select proper
477 /// section flags either for given global or for section.
479 SectionFlagsForGlobal(const GlobalValue *GV = NULL,
480 const char* name = NULL) const;
482 /// SectionForGlobal - This hooks returns proper section name for given
483 /// global with all necessary flags and marks.
484 virtual std::string SectionForGlobal(const GlobalValue *GV) const;
486 // Helper methods for SectionForGlobal
487 virtual std::string UniqueSectionForGlobal(const GlobalValue* GV,
488 SectionKind::Kind kind) const;
490 virtual std::string PrintSectionFlags(unsigned flags) const { return ""; }
492 virtual std::string SelectSectionForGlobal(const GlobalValue *GV) const;
496 const char *getTextSection() const {
499 const char *getDataSection() const {
502 const char *getBSSSection() const {
505 const char *getTLSDataSection() const {
506 return TLSDataSection;
508 const char *getTLSBSSSection() const {
509 return TLSBSSSection;
511 const char *getZeroFillDirective() const {
512 return ZeroFillDirective;
514 const char *getNonexecutableStackDirective() const {
515 return NonexecutableStackDirective;
517 bool needsSet() const {
520 const char *getPCSymbol() const {
523 char getSeparatorChar() const {
524 return SeparatorChar;
526 const char *getCommentString() const {
527 return CommentString;
529 const char *getGlobalPrefix() const {
532 const char *getPrivateGlobalPrefix() const {
533 return PrivateGlobalPrefix;
535 const char *getJumpTableSpecialLabelPrefix() const {
536 return JumpTableSpecialLabelPrefix;
538 const char *getGlobalVarAddrPrefix() const {
539 return GlobalVarAddrPrefix;
541 const char *getGlobalVarAddrSuffix() const {
542 return GlobalVarAddrSuffix;
544 const char *getFunctionAddrPrefix() const {
545 return FunctionAddrPrefix;
547 const char *getFunctionAddrSuffix() const {
548 return FunctionAddrSuffix;
550 const char *getPersonalityPrefix() const {
551 return PersonalityPrefix;
553 const char *getPersonalitySuffix() const {
554 return PersonalitySuffix;
556 bool getNeedsIndirectEncoding() const {
557 return NeedsIndirectEncoding;
559 const char *getInlineAsmStart() const {
560 return InlineAsmStart;
562 const char *getInlineAsmEnd() const {
565 unsigned getAssemblerDialect() const {
566 return AssemblerDialect;
568 const char *getStringConstantPrefix() const {
569 return StringConstantPrefix;
571 const char *getZeroDirective() const {
572 return ZeroDirective;
574 const char *getZeroDirectiveSuffix() const {
575 return ZeroDirectiveSuffix;
577 const char *getAsciiDirective() const {
578 return AsciiDirective;
580 const char *getAscizDirective() const {
581 return AscizDirective;
583 const char *getData8bitsDirective() const {
584 return Data8bitsDirective;
586 const char *getData16bitsDirective() const {
587 return Data16bitsDirective;
589 const char *getData32bitsDirective() const {
590 return Data32bitsDirective;
592 const char *getData64bitsDirective() const {
593 return Data64bitsDirective;
595 const char *getJumpTableDirective() const {
596 return JumpTableDirective;
598 const char *getAlignDirective() const {
599 return AlignDirective;
601 bool getAlignmentIsInBytes() const {
602 return AlignmentIsInBytes;
604 unsigned getTextAlignFillValue() const {
605 return TextAlignFillValue;
607 const char *getSwitchToSectionDirective() const {
608 return SwitchToSectionDirective;
610 const char *getTextSectionStartSuffix() const {
611 return TextSectionStartSuffix;
613 const char *getDataSectionStartSuffix() const {
614 return DataSectionStartSuffix;
616 const char *getSectionEndDirectiveSuffix() const {
617 return SectionEndDirectiveSuffix;
619 const char *getConstantPoolSection() const {
620 return ConstantPoolSection;
622 const char *getJumpTableDataSection() const {
623 return JumpTableDataSection;
625 const char *getCStringSection() const {
626 return CStringSection;
628 const char *getStaticCtorsSection() const {
629 return StaticCtorsSection;
631 const char *getStaticDtorsSection() const {
632 return StaticDtorsSection;
634 const char *getFourByteConstantSection() const {
635 return FourByteConstantSection;
637 const char *getEightByteConstantSection() const {
638 return EightByteConstantSection;
640 const char *getSixteenByteConstantSection() const {
641 return SixteenByteConstantSection;
643 const char *getReadOnlySection() const {
644 return ReadOnlySection;
646 const char *getGlobalDirective() const {
647 return GlobalDirective;
649 const char *getSetDirective() const {
652 const char *getLCOMMDirective() const {
653 return LCOMMDirective;
655 const char *getCOMMDirective() const {
656 return COMMDirective;
658 bool getCOMMDirectiveTakesAlignment() const {
659 return COMMDirectiveTakesAlignment;
661 bool hasDotTypeDotSizeDirective() const {
662 return HasDotTypeDotSizeDirective;
664 const char *getUsedDirective() const {
665 return UsedDirective;
667 const char *getWeakRefDirective() const {
668 return WeakRefDirective;
670 const char *getWeakDefDirective() const {
671 return WeakDefDirective;
673 const char *getHiddenDirective() const {
674 return HiddenDirective;
676 const char *getProtectedDirective() const {
677 return ProtectedDirective;
679 bool isAbsoluteDebugSectionOffsets() const {
680 return AbsoluteDebugSectionOffsets;
682 bool isAbsoluteEHSectionOffsets() const {
683 return AbsoluteEHSectionOffsets;
685 bool hasLEB128() const {
688 bool hasDotLocAndDotFile() const {
689 return HasDotLocAndDotFile;
691 bool doesSupportDebugInformation() const {
692 return SupportsDebugInformation;
694 bool doesSupportExceptionHandling() const {
695 return SupportsExceptionHandling;
697 bool doesDwarfRequireFrameSection() const {
698 return DwarfRequiresFrameSection;
700 const char *getGlobalEHDirective() const {
701 return GlobalEHDirective;
703 bool getSupportsWeakOmittedEHFrame() const {
704 return SupportsWeakOmittedEHFrame;
706 const char *getDwarfSectionOffsetDirective() const {
707 return DwarfSectionOffsetDirective;
709 const char *getDwarfAbbrevSection() const {
710 return DwarfAbbrevSection;
712 const char *getDwarfInfoSection() const {
713 return DwarfInfoSection;
715 const char *getDwarfLineSection() const {
716 return DwarfLineSection;
718 const char *getDwarfFrameSection() const {
719 return DwarfFrameSection;
721 const char *getDwarfPubNamesSection() const {
722 return DwarfPubNamesSection;
724 const char *getDwarfPubTypesSection() const {
725 return DwarfPubTypesSection;
727 const char *getDwarfStrSection() const {
728 return DwarfStrSection;
730 const char *getDwarfLocSection() const {
731 return DwarfLocSection;
733 const char *getDwarfARangesSection() const {
734 return DwarfARangesSection;
736 const char *getDwarfRangesSection() const {
737 return DwarfRangesSection;
739 const char *getDwarfMacInfoSection() const {
740 return DwarfMacInfoSection;
742 const char *getDwarfEHFrameSection() const {
743 return DwarfEHFrameSection;
745 const char *getDwarfExceptionSection() const {
746 return DwarfExceptionSection;
748 const char *const *getAsmCBE() const {