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/ADT/DenseMap.h"
20 #include "llvm/ADT/StringMap.h"
21 #include "llvm/Support/DataTypes.h"
25 // DWARF encoding query type
26 namespace DwarfEncoding {
34 namespace SectionKind {
36 Unknown = 0, ///< Custom section.
37 Text, ///< Text section.
38 BSS, ///< BSS section.
40 Data, ///< Data section.
41 DataRel, ///< Data that has relocations.
42 DataRelLocal, ///< Data that only has local relocations.
45 ROData, ///< Readonly data section.
46 DataRelRO, ///< Readonly data with non-local relocations.
47 DataRelROLocal, ///< Readonly data with local relocations only.
49 /// Mergable sections.
50 RODataMergeStr, ///< Readonly data section: nul-terminated strings.
51 RODataMergeConst, ///< Readonly data section: fixed-length constants.
53 /// Thread local data.
54 ThreadData, ///< Initialized TLS data objects
55 ThreadBSS ///< Uninitialized TLS data objects
58 static inline bool isReadOnly(Kind K) {
59 return (K == SectionKind::ROData ||
60 K == SectionKind::RODataMergeConst ||
61 K == SectionKind::RODataMergeStr);
64 static inline bool isBSS(Kind K) {
65 return K == SectionKind::BSS;
69 namespace SectionFlags {
70 const unsigned Invalid = -1U;
71 const unsigned None = 0;
72 const unsigned Code = 1 << 0; ///< Section contains code
73 const unsigned Writeable = 1 << 1; ///< Section is writeable
74 const unsigned BSS = 1 << 2; ///< Section contains only zeroes
75 const unsigned Mergeable = 1 << 3; ///< Section contains mergeable data
76 const unsigned Strings = 1 << 4; ///< Section contains C-type strings
77 const unsigned TLS = 1 << 5; ///< Section contains thread-local data
78 const unsigned Debug = 1 << 6; ///< Section contains debug data
79 const unsigned Linkonce = 1 << 7; ///< Section is linkonce
80 const unsigned TypeFlags = 0xFF;
81 // Some gap for future flags
82 const unsigned Named = 1 << 23; ///< Section is named
83 const unsigned EntitySize = 0xFF << 24; ///< Entity size for mergeable stuff
85 static inline unsigned getEntitySize(unsigned Flags) {
86 return (Flags >> 24) & 0xFF;
89 static inline unsigned setEntitySize(unsigned Flags, unsigned Size) {
90 return ((Flags & ~EntitySize) | ((Size & 0xFF) << 24));
94 static inline unsigned getEmptyKey() { return Invalid; }
95 static inline unsigned getTombstoneKey() { return Invalid - 1; }
96 static unsigned getHashValue(const unsigned &Key) { return Key; }
97 static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == RHS; }
98 static bool isPod() { return true; }
101 typedef DenseMap<unsigned, std::string, KeyInfo> FlagsStringsMapType;
111 friend class TargetAsmInfo;
112 friend class StringMapEntry<Section>;
113 friend class StringMap<Section>;
117 explicit Section(unsigned F = SectionFlags::Invalid):Flags(F) { }
121 bool isNamed() const { return Flags & SectionFlags::Named; }
122 unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; }
124 const std::string& getName() const { return Name; }
125 unsigned getFlags() const { return Flags; }
128 /// TargetAsmInfo - This class is intended to be used as a base class for asm
129 /// properties and features specific to the target.
130 class TargetAsmInfo {
132 mutable StringMap<Section> Sections;
133 mutable SectionFlags::FlagsStringsMapType FlagsStrings;
135 /// TM - The current TargetMachine.
136 const TargetMachine &TM;
138 //===------------------------------------------------------------------===//
139 // Properties to be set by the target writer, used to configure asm printer.
142 /// TextSection - Section directive for standard text.
144 const Section *TextSection; // Defaults to ".text".
146 /// DataSection - Section directive for standard data.
148 const Section *DataSection; // Defaults to ".data".
150 /// BSSSection - Section directive for uninitialized data. Null if this
151 /// target doesn't support a BSS section.
153 const char *BSSSection; // Default to ".bss".
154 const Section *BSSSection_;
156 /// ReadOnlySection - This is the directive that is emitted to switch to a
157 /// read-only section for constant data (e.g. data declared const,
159 const Section *ReadOnlySection; // Defaults to NULL
161 /// TLSDataSection - Section directive for Thread Local data.
163 const Section *TLSDataSection; // Defaults to ".tdata".
165 /// TLSBSSSection - Section directive for Thread Local uninitialized data.
166 /// Null if this target doesn't support a BSS section.
168 const Section *TLSBSSSection; // Defaults to ".tbss".
170 /// ZeroFillDirective - Directive for emitting a global to the ZeroFill
171 /// section on this target. Null if this target doesn't support zerofill.
172 const char *ZeroFillDirective; // Default is null.
174 /// NonexecutableStackDirective - Directive for declaring to the
175 /// linker and beyond that the emitted code does not require stack
176 /// memory to be executable.
177 const char *NonexecutableStackDirective; // Default is null.
179 /// NeedsSet - True if target asm treats expressions in data directives
180 /// as linktime-relocatable. For assembly-time computation, we need to
181 /// use a .set. Thus:
184 /// is computed at assembly time, while
186 /// is relocated if the relative locations of x and y change at linktime.
187 /// We want both these things in different places.
188 bool NeedsSet; // Defaults to false.
190 /// MaxInstLength - This is the maximum possible length of an instruction,
191 /// which is needed to compute the size of an inline asm.
192 unsigned MaxInstLength; // Defaults to 4.
194 /// PCSymbol - The symbol used to represent the current PC. Used in PC
195 /// relative expressions.
196 const char *PCSymbol; // Defaults to "$".
198 /// SeparatorChar - This character, if specified, is used to separate
199 /// instructions from each other when on the same line. This is used to
200 /// measure inline asm instructions.
201 char SeparatorChar; // Defaults to ';'
203 /// CommentColumn - This indicates the comment num (zero-based) at
204 /// which asm comments should be printed.
205 unsigned CommentColumn; // Defaults to 60
207 /// CommentString - This indicates the comment character used by the
209 const char *CommentString; // Defaults to "#"
211 /// FirstOperandColumn - The output column where the first operand
212 /// should be printed
213 unsigned FirstOperandColumn; // Defaults to 0 (ignored)
215 /// MaxOperandLength - The maximum length of any printed asm
217 unsigned MaxOperandLength; // Defaults to 0 (ignored)
219 /// GlobalPrefix - If this is set to a non-empty string, it is prepended
220 /// onto all global symbols. This is often used for "_" or ".".
221 const char *GlobalPrefix; // Defaults to ""
223 /// PrivateGlobalPrefix - This prefix is used for globals like constant
224 /// pool entries that are completely private to the .s file and should not
225 /// have names in the .o file. This is often "." or "L".
226 const char *PrivateGlobalPrefix; // Defaults to "."
228 /// LinkerPrivateGlobalPrefix - This prefix is used for symbols that should
229 /// be passed through the assembler but be removed by the linker. This
230 /// is "l" on Darwin, currently used for some ObjC metadata.
231 const char *LinkerPrivateGlobalPrefix; // Defaults to ""
233 /// JumpTableSpecialLabelPrefix - If not null, a extra (dead) label is
234 /// emitted before jump tables with the specified prefix.
235 const char *JumpTableSpecialLabelPrefix; // Default to null.
237 /// GlobalVarAddrPrefix/Suffix - If these are nonempty, these strings
238 /// will enclose any GlobalVariable (that isn't a function)
240 const char *GlobalVarAddrPrefix; // Defaults to ""
241 const char *GlobalVarAddrSuffix; // Defaults to ""
243 /// FunctionAddrPrefix/Suffix - If these are nonempty, these strings
244 /// will enclose any GlobalVariable that points to a function.
246 const char *FunctionAddrPrefix; // Defaults to ""
247 const char *FunctionAddrSuffix; // Defaults to ""
249 /// PersonalityPrefix/Suffix - If these are nonempty, these strings will
250 /// enclose any personality function in the common frame section.
252 const char *PersonalityPrefix; // Defaults to ""
253 const char *PersonalitySuffix; // Defaults to ""
255 /// NeedsIndirectEncoding - If set, we need to set the indirect encoding bit
258 bool NeedsIndirectEncoding; // Defaults to false
260 /// InlineAsmStart/End - If these are nonempty, they contain a directive to
261 /// emit before and after an inline assembly statement.
262 const char *InlineAsmStart; // Defaults to "#APP\n"
263 const char *InlineAsmEnd; // Defaults to "#NO_APP\n"
265 /// AssemblerDialect - Which dialect of an assembler variant to use.
266 unsigned AssemblerDialect; // Defaults to 0
268 /// AllowQuotesInName - This is true if the assembler allows for complex
269 /// symbol names to be surrounded in quotes. This defaults to false.
270 bool AllowQuotesInName;
272 //===--- Data Emission Directives -------------------------------------===//
274 /// ZeroDirective - this should be set to the directive used to get some
275 /// number of zero bytes emitted to the current section. Common cases are
276 /// "\t.zero\t" and "\t.space\t". If this is set to null, the
277 /// Data*bitsDirective's will be used to emit zero bytes.
278 const char *ZeroDirective; // Defaults to "\t.zero\t"
279 const char *ZeroDirectiveSuffix; // Defaults to ""
281 /// AsciiDirective - This directive allows emission of an ascii string with
282 /// the standard C escape characters embedded into it.
283 const char *AsciiDirective; // Defaults to "\t.ascii\t"
285 /// AscizDirective - If not null, this allows for special handling of
286 /// zero terminated strings on this target. This is commonly supported as
287 /// ".asciz". If a target doesn't support this, it can be set to null.
288 const char *AscizDirective; // Defaults to "\t.asciz\t"
290 /// DataDirectives - These directives are used to output some unit of
291 /// integer data to the current section. If a data directive is set to
292 /// null, smaller data directives will be used to emit the large sizes.
293 const char *Data8bitsDirective; // Defaults to "\t.byte\t"
294 const char *Data16bitsDirective; // Defaults to "\t.short\t"
295 const char *Data32bitsDirective; // Defaults to "\t.long\t"
296 const char *Data64bitsDirective; // Defaults to "\t.quad\t"
298 /// getDataASDirective - Return the directive that should be used to emit
299 /// data of the specified size to the specified numeric address space.
300 virtual const char *getDataASDirective(unsigned Size, unsigned AS) const {
301 assert(AS != 0 && "Don't know the directives for default addr space");
305 //===--- Alignment Information ----------------------------------------===//
307 /// AlignDirective - The directive used to emit round up to an alignment
310 const char *AlignDirective; // Defaults to "\t.align\t"
312 /// AlignmentIsInBytes - If this is true (the default) then the asmprinter
313 /// emits ".align N" directives, where N is the number of bytes to align to.
314 /// Otherwise, it emits ".align log2(N)", e.g. 3 to align to an 8 byte
316 bool AlignmentIsInBytes; // Defaults to true
318 /// TextAlignFillValue - If non-zero, this is used to fill the executable
319 /// space created as the result of a alignment directive.
320 unsigned TextAlignFillValue;
322 //===--- Section Switching Directives ---------------------------------===//
324 /// SwitchToSectionDirective - This is the directive used when we want to
325 /// emit a global to an arbitrary section. The section name is emited after
327 const char *SwitchToSectionDirective; // Defaults to "\t.section\t"
329 /// TextSectionStartSuffix - This is printed after each start of section
330 /// directive for text sections.
331 const char *TextSectionStartSuffix; // Defaults to "".
333 /// DataSectionStartSuffix - This is printed after each start of section
334 /// directive for data sections.
335 const char *DataSectionStartSuffix; // Defaults to "".
337 /// SectionEndDirectiveSuffix - If non-null, the asm printer will close each
338 /// section with the section name and this suffix printed.
339 const char *SectionEndDirectiveSuffix;// Defaults to null.
341 /// ConstantPoolSection - This is the section that we SwitchToSection right
342 /// before emitting the constant pool for a function.
343 const char *ConstantPoolSection; // Defaults to "\t.section .rodata"
345 /// JumpTableDataSection - This is the section that we SwitchToSection right
346 /// before emitting the jump tables for a function when the relocation model
348 const char *JumpTableDataSection; // Defaults to "\t.section .rodata"
350 /// JumpTableDirective - if non-null, the directive to emit before a jump
352 const char *JumpTableDirective;
354 /// CStringSection - If not null, this allows for special handling of
355 /// cstring constants (null terminated string that does not contain any
356 /// other null bytes) on this target. This is commonly supported as
358 const char *CStringSection; // Defaults to NULL
359 const Section *CStringSection_;
361 /// StaticCtorsSection - This is the directive that is emitted to switch to
362 /// a section to emit the static constructor list.
363 /// Defaults to "\t.section .ctors,\"aw\",@progbits".
364 const char *StaticCtorsSection;
366 /// StaticDtorsSection - This is the directive that is emitted to switch to
367 /// a section to emit the static destructor list.
368 /// Defaults to "\t.section .dtors,\"aw\",@progbits".
369 const char *StaticDtorsSection;
371 //===--- Global Variable Emission Directives --------------------------===//
373 /// GlobalDirective - This is the directive used to declare a global entity.
375 const char *GlobalDirective; // Defaults to NULL.
377 /// ExternDirective - This is the directive used to declare external
380 const char *ExternDirective; // Defaults to NULL.
382 /// SetDirective - This is the name of a directive that can be used to tell
383 /// the assembler to set the value of a variable to some expression.
384 const char *SetDirective; // Defaults to null.
386 /// LCOMMDirective - This is the name of a directive (if supported) that can
387 /// be used to efficiently declare a local (internal) block of zero
388 /// initialized data in the .bss/.data section. The syntax expected is:
389 /// @verbatim <LCOMMDirective> SYMBOLNAME LENGTHINBYTES, ALIGNMENT
391 const char *LCOMMDirective; // Defaults to null.
393 const char *COMMDirective; // Defaults to "\t.comm\t".
395 /// COMMDirectiveTakesAlignment - True if COMMDirective take a third
396 /// argument that specifies the alignment of the declaration.
397 bool COMMDirectiveTakesAlignment; // Defaults to true.
399 /// HasDotTypeDotSizeDirective - True if the target has .type and .size
400 /// directives, this is true for most ELF targets.
401 bool HasDotTypeDotSizeDirective; // Defaults to true.
403 /// HasSingleParameterDotFile - True if the target has a single parameter
404 /// .file directive, this is true for ELF targets.
405 bool HasSingleParameterDotFile; // Defaults to true.
407 /// UsedDirective - This directive, if non-null, is used to declare a global
408 /// as being used somehow that the assembler can't see. This prevents dead
409 /// code elimination on some targets.
410 const char *UsedDirective; // Defaults to null.
412 /// WeakRefDirective - This directive, if non-null, is used to declare a
413 /// global as being a weak undefined symbol.
414 const char *WeakRefDirective; // Defaults to null.
416 /// WeakDefDirective - This directive, if non-null, is used to declare a
417 /// global as being a weak defined symbol.
418 const char *WeakDefDirective; // Defaults to null.
420 /// HiddenDirective - This directive, if non-null, is used to declare a
421 /// global or function as having hidden visibility.
422 const char *HiddenDirective; // Defaults to "\t.hidden\t".
424 /// ProtectedDirective - This directive, if non-null, is used to declare a
425 /// global or function as having protected visibility.
426 const char *ProtectedDirective; // Defaults to "\t.protected\t".
428 //===--- Dwarf Emission Directives -----------------------------------===//
430 /// AbsoluteDebugSectionOffsets - True if we should emit abolute section
431 /// offsets for debug information. Defaults to false.
432 bool AbsoluteDebugSectionOffsets;
434 /// AbsoluteEHSectionOffsets - True if we should emit abolute section
435 /// offsets for EH information. Defaults to false.
436 bool AbsoluteEHSectionOffsets;
438 /// HasLEB128 - True if target asm supports leb128 directives.
440 bool HasLEB128; // Defaults to false.
442 /// hasDotLocAndDotFile - True if target asm supports .loc and .file
443 /// directives for emitting debugging information.
445 bool HasDotLocAndDotFile; // Defaults to false.
447 /// SupportsDebugInformation - True if target supports emission of debugging
449 bool SupportsDebugInformation;
451 /// SupportsExceptionHandling - True if target supports
452 /// exception handling.
454 bool SupportsExceptionHandling; // Defaults to false.
456 /// RequiresFrameSection - true if the Dwarf2 output needs a frame section
458 bool DwarfRequiresFrameSection; // Defaults to true.
460 /// DwarfUsesInlineInfoSection - True if DwarfDebugInlineSection is used to
461 /// encode inline subroutine information.
462 bool DwarfUsesInlineInfoSection; // Defaults to false.
464 /// Is_EHSymbolPrivate - If set, the "_foo.eh" is made private so that it
465 /// doesn't show up in the symbol table of the object file.
466 bool Is_EHSymbolPrivate; // Defaults to true.
468 /// GlobalEHDirective - This is the directive used to make exception frame
469 /// tables globally visible.
471 const char *GlobalEHDirective; // Defaults to NULL.
473 /// SupportsWeakEmptyEHFrame - True if target assembler and linker will
474 /// handle a weak_definition of constant 0 for an omitted EH frame.
475 bool SupportsWeakOmittedEHFrame; // Defaults to true.
477 /// DwarfSectionOffsetDirective - Special section offset directive.
478 const char* DwarfSectionOffsetDirective; // Defaults to NULL
480 /// DwarfAbbrevSection - Section directive for Dwarf abbrev.
482 const char *DwarfAbbrevSection; // Defaults to ".debug_abbrev".
484 /// DwarfInfoSection - Section directive for Dwarf info.
486 const char *DwarfInfoSection; // Defaults to ".debug_info".
488 /// DwarfLineSection - Section directive for Dwarf info.
490 const char *DwarfLineSection; // Defaults to ".debug_line".
492 /// DwarfFrameSection - Section directive for Dwarf info.
494 const char *DwarfFrameSection; // Defaults to ".debug_frame".
496 /// DwarfPubNamesSection - Section directive for Dwarf info.
498 const char *DwarfPubNamesSection; // Defaults to ".debug_pubnames".
500 /// DwarfPubTypesSection - Section directive for Dwarf info.
502 const char *DwarfPubTypesSection; // Defaults to ".debug_pubtypes".
504 /// DwarfDebugInlineSection - Section directive for inline info.
506 const char *DwarfDebugInlineSection; // Defaults to ".debug_inlined"
508 /// DwarfStrSection - Section directive for Dwarf info.
510 const char *DwarfStrSection; // Defaults to ".debug_str".
512 /// DwarfLocSection - Section directive for Dwarf info.
514 const char *DwarfLocSection; // Defaults to ".debug_loc".
516 /// DwarfARangesSection - Section directive for Dwarf info.
518 const char *DwarfARangesSection; // Defaults to ".debug_aranges".
520 /// DwarfRangesSection - Section directive for Dwarf info.
522 const char *DwarfRangesSection; // Defaults to ".debug_ranges".
524 /// DwarfMacroInfoSection - Section directive for DWARF macro info.
526 const char *DwarfMacroInfoSection; // Defaults to ".debug_macinfo".
528 /// DwarfEHFrameSection - Section directive for Exception frames.
530 const char *DwarfEHFrameSection; // Defaults to ".eh_frame".
532 /// DwarfExceptionSection - Section directive for Exception table.
534 const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
536 //===--- CBE Asm Translation Table -----------------------------------===//
538 const char *const *AsmTransCBE; // Defaults to empty
541 explicit TargetAsmInfo(const TargetMachine &TM);
542 virtual ~TargetAsmInfo();
544 const Section* getNamedSection(const char *Name,
545 unsigned Flags = SectionFlags::None,
546 bool Override = false) const;
547 const Section* getUnnamedSection(const char *Directive,
548 unsigned Flags = SectionFlags::None,
549 bool Override = false) const;
551 /// Measure the specified inline asm to determine an approximation of its
553 virtual unsigned getInlineAsmLength(const char *Str) const;
555 /// emitUsedDirectiveFor - This hook allows targets to selectively decide
556 /// not to emit the UsedDirective for some symbols in llvm.used.
557 // FIXME: REMOVE this (rdar://7071300)
558 virtual bool emitUsedDirectiveFor(const GlobalValue *GV,
559 Mangler *Mang) const {
563 /// PreferredEHDataFormat - This hook allows the target to select data
564 /// format used for encoding pointers in exception handling data. Reason is
565 /// 0 for data, 1 for code labels, 2 for function pointers. Global is true
566 /// if the symbol can be relocated.
567 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
571 /// getSectionForMergableConstant - Given a mergable constant with the
572 /// specified size and relocation information, return a section that it
573 /// should be placed in.
574 virtual const Section *
575 getSectionForMergableConstant(uint64_t Size, unsigned ReloInfo) const;
578 /// SectionKindForGlobal - This hook allows the target to select proper
579 /// section kind used for global emission.
580 // FIXME: Eliminate this.
581 virtual SectionKind::Kind
582 SectionKindForGlobal(const GlobalValue *GV) const;
584 /// SectionFlagsForGlobal - This hook allows the target to select proper
585 /// section flags either for given global or for section.
586 // FIXME: Eliminate this.
588 SectionFlagsForGlobal(const GlobalValue *GV = NULL,
589 const char* name = NULL) const;
591 /// SectionForGlobal - This hooks returns proper section name for given
592 /// global with all necessary flags and marks.
593 // FIXME: Eliminate this.
594 virtual const Section* SectionForGlobal(const GlobalValue *GV) const;
596 // Helper methods for SectionForGlobal
597 // FIXME: Eliminate this.
598 virtual std::string UniqueSectionForGlobal(const GlobalValue* GV,
599 SectionKind::Kind kind) const;
601 const std::string &getSectionFlags(unsigned Flags) const;
602 virtual std::string printSectionFlags(unsigned flags) const { return ""; }
604 // FIXME: Eliminate this.
605 virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
607 /// getSLEB128Size - Compute the number of bytes required for a signed
609 static unsigned getSLEB128Size(int Value);
611 /// getULEB128Size - Compute the number of bytes required for an unsigned
613 static unsigned getULEB128Size(unsigned Value);
615 // Data directive accessors.
617 const char *getData8bitsDirective(unsigned AS = 0) const {
618 return AS == 0 ? Data8bitsDirective : getDataASDirective(8, AS);
620 const char *getData16bitsDirective(unsigned AS = 0) const {
621 return AS == 0 ? Data16bitsDirective : getDataASDirective(16, AS);
623 const char *getData32bitsDirective(unsigned AS = 0) const {
624 return AS == 0 ? Data32bitsDirective : getDataASDirective(32, AS);
626 const char *getData64bitsDirective(unsigned AS = 0) const {
627 return AS == 0 ? Data64bitsDirective : getDataASDirective(64, AS);
633 const Section *getTextSection() const {
636 const Section *getDataSection() const {
639 const char *getBSSSection() const {
642 const Section *getBSSSection_() const {
645 const Section *getReadOnlySection() const {
646 return ReadOnlySection;
648 const Section *getTLSDataSection() const {
649 return TLSDataSection;
651 const Section *getTLSBSSSection() const {
652 return TLSBSSSection;
654 const char *getZeroFillDirective() const {
655 return ZeroFillDirective;
657 const char *getNonexecutableStackDirective() const {
658 return NonexecutableStackDirective;
660 bool needsSet() const {
663 const char *getPCSymbol() const {
666 char getSeparatorChar() const {
667 return SeparatorChar;
669 unsigned getCommentColumn() const {
670 return CommentColumn;
672 const char *getCommentString() const {
673 return CommentString;
675 unsigned getOperandColumn(int operand) const {
676 return FirstOperandColumn + (MaxOperandLength+1)*(operand-1);
678 const char *getGlobalPrefix() const {
681 const char *getPrivateGlobalPrefix() const {
682 return PrivateGlobalPrefix;
684 const char *getLinkerPrivateGlobalPrefix() const {
685 return LinkerPrivateGlobalPrefix;
687 const char *getJumpTableSpecialLabelPrefix() const {
688 return JumpTableSpecialLabelPrefix;
690 const char *getGlobalVarAddrPrefix() const {
691 return GlobalVarAddrPrefix;
693 const char *getGlobalVarAddrSuffix() const {
694 return GlobalVarAddrSuffix;
696 const char *getFunctionAddrPrefix() const {
697 return FunctionAddrPrefix;
699 const char *getFunctionAddrSuffix() const {
700 return FunctionAddrSuffix;
702 const char *getPersonalityPrefix() const {
703 return PersonalityPrefix;
705 const char *getPersonalitySuffix() const {
706 return PersonalitySuffix;
708 bool getNeedsIndirectEncoding() const {
709 return NeedsIndirectEncoding;
711 const char *getInlineAsmStart() const {
712 return InlineAsmStart;
714 const char *getInlineAsmEnd() const {
717 unsigned getAssemblerDialect() const {
718 return AssemblerDialect;
720 bool doesAllowQuotesInName() const {
721 return AllowQuotesInName;
723 const char *getZeroDirective() const {
724 return ZeroDirective;
726 const char *getZeroDirectiveSuffix() const {
727 return ZeroDirectiveSuffix;
729 const char *getAsciiDirective() const {
730 return AsciiDirective;
732 const char *getAscizDirective() const {
733 return AscizDirective;
735 const char *getJumpTableDirective() const {
736 return JumpTableDirective;
738 const char *getAlignDirective() const {
739 return AlignDirective;
741 bool getAlignmentIsInBytes() const {
742 return AlignmentIsInBytes;
744 unsigned getTextAlignFillValue() const {
745 return TextAlignFillValue;
747 const char *getSwitchToSectionDirective() const {
748 return SwitchToSectionDirective;
750 const char *getTextSectionStartSuffix() const {
751 return TextSectionStartSuffix;
753 const char *getDataSectionStartSuffix() const {
754 return DataSectionStartSuffix;
756 const char *getSectionEndDirectiveSuffix() const {
757 return SectionEndDirectiveSuffix;
759 const char *getConstantPoolSection() const {
760 return ConstantPoolSection;
762 const char *getJumpTableDataSection() const {
763 return JumpTableDataSection;
765 const char *getCStringSection() const {
766 return CStringSection;
768 const Section *getCStringSection_() const {
769 return CStringSection_;
771 const char *getStaticCtorsSection() const {
772 return StaticCtorsSection;
774 const char *getStaticDtorsSection() const {
775 return StaticDtorsSection;
777 const char *getGlobalDirective() const {
778 return GlobalDirective;
780 const char *getExternDirective() const {
781 return ExternDirective;
783 const char *getSetDirective() const {
786 const char *getLCOMMDirective() const {
787 return LCOMMDirective;
789 const char *getCOMMDirective() const {
790 return COMMDirective;
792 bool getCOMMDirectiveTakesAlignment() const {
793 return COMMDirectiveTakesAlignment;
795 bool hasDotTypeDotSizeDirective() const {
796 return HasDotTypeDotSizeDirective;
798 bool hasSingleParameterDotFile() const {
799 return HasSingleParameterDotFile;
801 const char *getUsedDirective() const {
802 return UsedDirective;
804 const char *getWeakRefDirective() const {
805 return WeakRefDirective;
807 const char *getWeakDefDirective() const {
808 return WeakDefDirective;
810 const char *getHiddenDirective() const {
811 return HiddenDirective;
813 const char *getProtectedDirective() const {
814 return ProtectedDirective;
816 bool isAbsoluteDebugSectionOffsets() const {
817 return AbsoluteDebugSectionOffsets;
819 bool isAbsoluteEHSectionOffsets() const {
820 return AbsoluteEHSectionOffsets;
822 bool hasLEB128() const {
825 bool hasDotLocAndDotFile() const {
826 return HasDotLocAndDotFile;
828 bool doesSupportDebugInformation() const {
829 return SupportsDebugInformation;
831 bool doesSupportExceptionHandling() const {
832 return SupportsExceptionHandling;
834 bool doesDwarfRequireFrameSection() const {
835 return DwarfRequiresFrameSection;
837 bool doesDwarfUsesInlineInfoSection() const {
838 return DwarfUsesInlineInfoSection;
840 bool is_EHSymbolPrivate() const {
841 return Is_EHSymbolPrivate;
843 const char *getGlobalEHDirective() const {
844 return GlobalEHDirective;
846 bool getSupportsWeakOmittedEHFrame() const {
847 return SupportsWeakOmittedEHFrame;
849 const char *getDwarfSectionOffsetDirective() const {
850 return DwarfSectionOffsetDirective;
852 const char *getDwarfAbbrevSection() const {
853 return DwarfAbbrevSection;
855 const char *getDwarfInfoSection() const {
856 return DwarfInfoSection;
858 const char *getDwarfLineSection() const {
859 return DwarfLineSection;
861 const char *getDwarfFrameSection() const {
862 return DwarfFrameSection;
864 const char *getDwarfPubNamesSection() const {
865 return DwarfPubNamesSection;
867 const char *getDwarfPubTypesSection() const {
868 return DwarfPubTypesSection;
870 const char *getDwarfDebugInlineSection() const {
871 return DwarfDebugInlineSection;
873 const char *getDwarfStrSection() const {
874 return DwarfStrSection;
876 const char *getDwarfLocSection() const {
877 return DwarfLocSection;
879 const char *getDwarfARangesSection() const {
880 return DwarfARangesSection;
882 const char *getDwarfRangesSection() const {
883 return DwarfRangesSection;
885 const char *getDwarfMacroInfoSection() const {
886 return DwarfMacroInfoSection;
888 const char *getDwarfEHFrameSection() const {
889 return DwarfEHFrameSection;
891 const char *getDwarfExceptionSection() const {
892 return DwarfExceptionSection;
894 const char *const *getAsmCBE() const {