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 Data, ///< Data section
40 ROData, ///< Readonly data section
41 RODataMergeStr, ///< Readonly data section (mergeable strings)
42 RODataMergeConst, ///< Readonly data section (mergeable constants)
43 SmallData, ///< Small data section
44 SmallBSS, ///< Small bss section
45 SmallROData, ///< Small readonly section
46 ThreadData, ///< Initialized TLS data objects
47 ThreadBSS ///< Uninitialized TLS data objects
50 static inline bool isReadOnly(Kind K) {
51 return (K == SectionKind::ROData ||
52 K == SectionKind::RODataMergeConst ||
53 K == SectionKind::RODataMergeStr ||
54 K == SectionKind::SmallROData);
57 static inline bool isBSS(Kind K) {
58 return (K == SectionKind::BSS ||
59 K == SectionKind::SmallBSS);
63 namespace SectionFlags {
64 const unsigned Invalid = -1U;
65 const unsigned None = 0;
66 const unsigned Code = 1 << 0; ///< Section contains code
67 const unsigned Writeable = 1 << 1; ///< Section is writeable
68 const unsigned BSS = 1 << 2; ///< Section contains only zeroes
69 const unsigned Mergeable = 1 << 3; ///< Section contains mergeable data
70 const unsigned Strings = 1 << 4; ///< Section contains C-type strings
71 const unsigned TLS = 1 << 5; ///< Section contains thread-local data
72 const unsigned Debug = 1 << 6; ///< Section contains debug data
73 const unsigned Linkonce = 1 << 7; ///< Section is linkonce
74 const unsigned Small = 1 << 8; ///< Section is small
75 const unsigned TypeFlags = 0xFF;
76 // Some gap for future flags
77 const unsigned Named = 1 << 23; ///< Section is named
78 const unsigned EntitySize = 0xFF << 24; ///< Entity size for mergeable stuff
80 static inline unsigned getEntitySize(unsigned Flags) {
81 return (Flags >> 24) & 0xFF;
84 static inline unsigned setEntitySize(unsigned Flags, unsigned Size) {
85 return ((Flags & ~EntitySize) | ((Size & 0xFF) << 24));
89 static inline unsigned getEmptyKey() { return Invalid; }
90 static inline unsigned getTombstoneKey() { return Invalid - 1; }
91 static unsigned getHashValue(const unsigned &Key) { return Key; }
92 static bool isEqual(unsigned LHS, unsigned RHS) { return LHS == RHS; }
93 static bool isPod() { return true; }
96 typedef DenseMap<unsigned, std::string, KeyInfo> FlagsStringsMapType;
106 friend class TargetAsmInfo;
107 friend class StringMapEntry<Section>;
112 explicit Section(unsigned F = SectionFlags::Invalid):Flags(F) { }
114 bool isNamed() const { return Flags & SectionFlags::Named; }
115 unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; }
116 const std::string& getName() const { return Name; }
119 /// TargetAsmInfo - This class is intended to be used as a base class for asm
120 /// properties and features specific to the target.
121 class TargetAsmInfo {
123 mutable StringMap<Section> Sections;
124 mutable SectionFlags::FlagsStringsMapType FlagsStrings;
126 //===------------------------------------------------------------------===//
127 // Properties to be set by the target writer, used to configure asm printer.
130 /// TextSection - Section directive for standard text.
132 const char *TextSection; // Defaults to ".text".
133 const Section *TextSection_;
135 /// DataSection - Section directive for standard data.
137 const char *DataSection; // Defaults to ".data".
138 const Section *DataSection_;
140 /// BSSSection - Section directive for uninitialized data. Null if this
141 /// target doesn't support a BSS section.
143 const char *BSSSection; // Default to ".bss".
144 const Section *BSSSection_;
146 /// ReadOnlySection - This is the directive that is emitted to switch to a
147 /// read-only section for constant data (e.g. data declared const,
149 const char *ReadOnlySection; // Defaults to NULL
150 const Section *ReadOnlySection_;
152 /// SmallDataSection - This is the directive that is emitted to switch to a
153 /// small data section.
155 const Section *SmallDataSection; // Defaults to NULL
157 /// SmallBSSSection - This is the directive that is emitted to switch to a
158 /// small bss section.
160 const Section *SmallBSSSection; // Defaults to NULL
162 /// SmallRODataSection - This is the directive that is emitted to switch to
163 /// a small read-only data section.
165 const Section *SmallRODataSection; // Defaults to NULL
167 /// TLSDataSection - Section directive for Thread Local data.
169 const char *TLSDataSection;// Defaults to ".section .tdata,"awT",@progbits".
170 const Section *TLSDataSection_;
172 /// TLSBSSSection - Section directive for Thread Local uninitialized data.
173 /// Null if this target doesn't support a BSS section.
175 const char *TLSBSSSection;// Default to ".section .tbss,"awT",@nobits".
176 const Section *TLSBSSSection_;
178 /// ZeroFillDirective - Directive for emitting a global to the ZeroFill
179 /// section on this target. Null if this target doesn't support zerofill.
180 const char *ZeroFillDirective; // Default is null.
182 /// NonexecutableStackDirective - Directive for declaring to the
183 /// linker and beyond that the emitted code does not require stack
184 /// memory to be executable.
185 const char *NonexecutableStackDirective; // Default is null.
187 /// NeedsSet - True if target asm treats expressions in data directives
188 /// as linktime-relocatable. For assembly-time computation, we need to
189 /// use a .set. Thus:
192 /// is computed at assembly time, while
194 /// is relocated if the relative locations of x and y change at linktime.
195 /// We want both these things in different places.
196 bool NeedsSet; // Defaults to false.
198 /// MaxInstLength - This is the maximum possible length of an instruction,
199 /// which is needed to compute the size of an inline asm.
200 unsigned MaxInstLength; // Defaults to 4.
202 /// PCSymbol - The symbol used to represent the current PC. Used in PC
203 /// relative expressions.
204 const char *PCSymbol; // Defaults to "$".
206 /// SeparatorChar - This character, if specified, is used to separate
207 /// instructions from each other when on the same line. This is used to
208 /// measure inline asm instructions.
209 char SeparatorChar; // Defaults to ';'
211 /// CommentString - This indicates the comment character used by the
213 const char *CommentString; // Defaults to "#"
215 /// GlobalPrefix - If this is set to a non-empty string, it is prepended
216 /// onto all global symbols. This is often used for "_" or ".".
217 const char *GlobalPrefix; // Defaults to ""
219 /// PrivateGlobalPrefix - This prefix is used for globals like constant
220 /// pool entries that are completely private to the .s file and should not
221 /// have names in the .o file. This is often "." or "L".
222 const char *PrivateGlobalPrefix; // Defaults to "."
224 /// LessPrivateGlobalPrefix - This prefix is used for symbols that should
225 /// be passed through the assembler but be removed by the linker. This
226 /// is "l" on Darwin, currently used for some ObjC metadata.
227 const char *LessPrivateGlobalPrefix; // Defaults to ""
229 /// JumpTableSpecialLabelPrefix - If not null, a extra (dead) label is
230 /// emitted before jump tables with the specified prefix.
231 const char *JumpTableSpecialLabelPrefix; // Default to null.
233 /// GlobalVarAddrPrefix/Suffix - If these are nonempty, these strings
234 /// will enclose any GlobalVariable (that isn't a function)
236 const char *GlobalVarAddrPrefix; // Defaults to ""
237 const char *GlobalVarAddrSuffix; // Defaults to ""
239 /// FunctionAddrPrefix/Suffix - If these are nonempty, these strings
240 /// will enclose any GlobalVariable that points to a function.
241 /// For example, this is used by the IA64 backend to materialize
242 /// function descriptors, by decorating the ".data8" object with the
243 /// @verbatim @fptr( ) @endverbatim
244 /// link-relocation operator.
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 /// StringConstantPrefix - Prefix for FEs to use when generating unnamed
269 /// constant strings. These names get run through the Mangler later; if
270 /// you want the Mangler not to add the GlobalPrefix as well,
271 /// use '\1' as the first character.
272 const char *StringConstantPrefix; // Defaults to ".str"
274 //===--- Data Emission Directives -------------------------------------===//
276 /// ZeroDirective - this should be set to the directive used to get some
277 /// number of zero bytes emitted to the current section. Common cases are
278 /// "\t.zero\t" and "\t.space\t". If this is set to null, the
279 /// Data*bitsDirective's will be used to emit zero bytes.
280 const char *ZeroDirective; // Defaults to "\t.zero\t"
281 const char *ZeroDirectiveSuffix; // Defaults to ""
283 /// AsciiDirective - This directive allows emission of an ascii string with
284 /// the standard C escape characters embedded into it.
285 const char *AsciiDirective; // Defaults to "\t.ascii\t"
287 /// AscizDirective - If not null, this allows for special handling of
288 /// zero terminated strings on this target. This is commonly supported as
289 /// ".asciz". If a target doesn't support this, it can be set to null.
290 const char *AscizDirective; // Defaults to "\t.asciz\t"
292 /// DataDirectives - These directives are used to output some unit of
293 /// integer data to the current section. If a data directive is set to
294 /// null, smaller data directives will be used to emit the large sizes.
295 const char *Data8bitsDirective; // Defaults to "\t.byte\t"
296 const char *Data16bitsDirective; // Defaults to "\t.short\t"
297 const char *Data32bitsDirective; // Defaults to "\t.long\t"
298 const char *Data64bitsDirective; // Defaults to "\t.quad\t"
300 //===--- Alignment Information ----------------------------------------===//
302 /// AlignDirective - The directive used to emit round up to an alignment
305 const char *AlignDirective; // Defaults to "\t.align\t"
307 /// AlignmentIsInBytes - If this is true (the default) then the asmprinter
308 /// emits ".align N" directives, where N is the number of bytes to align to.
309 /// Otherwise, it emits ".align log2(N)", e.g. 3 to align to an 8 byte
311 bool AlignmentIsInBytes; // Defaults to true
313 /// TextAlignFillValue - If non-zero, this is used to fill the executable
314 /// space created as the result of a alignment directive.
315 unsigned TextAlignFillValue;
317 //===--- Section Switching Directives ---------------------------------===//
319 /// SwitchToSectionDirective - This is the directive used when we want to
320 /// emit a global to an arbitrary section. The section name is emited after
322 const char *SwitchToSectionDirective; // Defaults to "\t.section\t"
324 /// TextSectionStartSuffix - This is printed after each start of section
325 /// directive for text sections.
326 const char *TextSectionStartSuffix; // Defaults to "".
328 /// DataSectionStartSuffix - This is printed after each start of section
329 /// directive for data sections.
330 const char *DataSectionStartSuffix; // Defaults to "".
332 /// SectionEndDirectiveSuffix - If non-null, the asm printer will close each
333 /// section with the section name and this suffix printed.
334 const char *SectionEndDirectiveSuffix;// Defaults to null.
336 /// ConstantPoolSection - This is the section that we SwitchToSection right
337 /// before emitting the constant pool for a function.
338 const char *ConstantPoolSection; // Defaults to "\t.section .rodata"
340 /// JumpTableDataSection - This is the section that we SwitchToSection right
341 /// before emitting the jump tables for a function when the relocation model
343 const char *JumpTableDataSection; // Defaults to "\t.section .rodata"
345 /// JumpTableDirective - if non-null, the directive to emit before a jump
347 const char *JumpTableDirective;
349 /// CStringSection - If not null, this allows for special handling of
350 /// cstring constants (null terminated string that does not contain any
351 /// other null bytes) on this target. This is commonly supported as
353 const char *CStringSection; // Defaults to NULL
354 const Section *CStringSection_;
356 /// StaticCtorsSection - This is the directive that is emitted to switch to
357 /// a section to emit the static constructor list.
358 /// Defaults to "\t.section .ctors,\"aw\",@progbits".
359 const char *StaticCtorsSection;
361 /// StaticDtorsSection - This is the directive that is emitted to switch to
362 /// a section to emit the static destructor list.
363 /// Defaults to "\t.section .dtors,\"aw\",@progbits".
364 const char *StaticDtorsSection;
366 /// FourByteConstantSection, EightByteConstantSection,
367 /// SixteenByteConstantSection - These are special sections where we place
368 /// 4-, 8-, and 16- byte constant literals.
369 const char *FourByteConstantSection;
370 const Section *FourByteConstantSection_;
371 const char *EightByteConstantSection;
372 const Section *EightByteConstantSection_;
373 const char *SixteenByteConstantSection;
374 const Section *SixteenByteConstantSection_;
376 //===--- Global Variable Emission Directives --------------------------===//
378 /// GlobalDirective - This is the directive used to declare a global entity.
380 const char *GlobalDirective; // 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 /// UsedDirective - This directive, if non-null, is used to declare a global
404 /// as being used somehow that the assembler can't see. This prevents dead
405 /// code elimination on some targets.
406 const char *UsedDirective; // Defaults to null.
408 /// WeakRefDirective - This directive, if non-null, is used to declare a
409 /// global as being a weak undefined symbol.
410 const char *WeakRefDirective; // Defaults to null.
412 /// WeakDefDirective - This directive, if non-null, is used to declare a
413 /// global as being a weak defined symbol.
414 const char *WeakDefDirective; // Defaults to null.
416 /// HiddenDirective - This directive, if non-null, is used to declare a
417 /// global or function as having hidden visibility.
418 const char *HiddenDirective; // Defaults to "\t.hidden\t".
420 /// ProtectedDirective - This directive, if non-null, is used to declare a
421 /// global or function as having protected visibility.
422 const char *ProtectedDirective; // Defaults to "\t.protected\t".
424 //===--- Dwarf Emission Directives -----------------------------------===//
426 /// AbsoluteDebugSectionOffsets - True if we should emit abolute section
427 /// offsets for debug information. Defaults to false.
428 bool AbsoluteDebugSectionOffsets;
430 /// AbsoluteEHSectionOffsets - True if we should emit abolute section
431 /// offsets for EH information. Defaults to false.
432 bool AbsoluteEHSectionOffsets;
434 /// HasLEB128 - True if target asm supports leb128 directives.
436 bool HasLEB128; // Defaults to false.
438 /// hasDotLocAndDotFile - True if target asm supports .loc and .file
439 /// directives for emitting debugging information.
441 bool HasDotLocAndDotFile; // Defaults to false.
443 /// SupportsDebugInformation - True if target supports emission of debugging
445 bool SupportsDebugInformation;
447 /// SupportsExceptionHandling - True if target supports
448 /// exception handling.
450 bool SupportsExceptionHandling; // Defaults to false.
452 /// RequiresFrameSection - true if the Dwarf2 output needs a frame section
454 bool DwarfRequiresFrameSection; // Defaults to true.
456 /// GlobalEHDirective - This is the directive used to make exception frame
457 /// tables globally visible.
459 const char *GlobalEHDirective; // Defaults to NULL.
461 /// SupportsWeakEmptyEHFrame - True if target assembler and linker will
462 /// handle a weak_definition of constant 0 for an omitted EH frame.
463 bool SupportsWeakOmittedEHFrame; // Defaults to true.
465 /// DwarfSectionOffsetDirective - Special section offset directive.
466 const char* DwarfSectionOffsetDirective; // Defaults to NULL
468 /// DwarfAbbrevSection - Section directive for Dwarf abbrev.
470 const char *DwarfAbbrevSection; // Defaults to ".debug_abbrev".
472 /// DwarfInfoSection - Section directive for Dwarf info.
474 const char *DwarfInfoSection; // Defaults to ".debug_info".
476 /// DwarfLineSection - Section directive for Dwarf info.
478 const char *DwarfLineSection; // Defaults to ".debug_line".
480 /// DwarfFrameSection - Section directive for Dwarf info.
482 const char *DwarfFrameSection; // Defaults to ".debug_frame".
484 /// DwarfPubNamesSection - Section directive for Dwarf info.
486 const char *DwarfPubNamesSection; // Defaults to ".debug_pubnames".
488 /// DwarfPubTypesSection - Section directive for Dwarf info.
490 const char *DwarfPubTypesSection; // Defaults to ".debug_pubtypes".
492 /// DwarfStrSection - Section directive for Dwarf info.
494 const char *DwarfStrSection; // Defaults to ".debug_str".
496 /// DwarfLocSection - Section directive for Dwarf info.
498 const char *DwarfLocSection; // Defaults to ".debug_loc".
500 /// DwarfARangesSection - Section directive for Dwarf info.
502 const char *DwarfARangesSection; // Defaults to ".debug_aranges".
504 /// DwarfRangesSection - Section directive for Dwarf info.
506 const char *DwarfRangesSection; // Defaults to ".debug_ranges".
508 /// DwarfMacInfoSection - Section directive for Dwarf info.
510 const char *DwarfMacInfoSection; // Defaults to ".debug_macinfo".
512 /// DwarfEHFrameSection - Section directive for Exception frames.
514 const char *DwarfEHFrameSection; // Defaults to ".eh_frame".
516 /// DwarfExceptionSection - Section directive for Exception table.
518 const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
520 //===--- CBE Asm Translation Table -----------------------------------===//
522 const char *const *AsmTransCBE; // Defaults to empty
526 virtual ~TargetAsmInfo();
528 const Section* getNamedSection(const char *Name,
529 unsigned Flags = SectionFlags::None,
530 bool Override = false) const;
531 const Section* getUnnamedSection(const char *Directive,
532 unsigned Flags = SectionFlags::None,
533 bool Override = false) const;
535 /// Measure the specified inline asm to determine an approximation of its
537 virtual unsigned getInlineAsmLength(const char *Str) const;
539 /// ExpandInlineAsm - This hook allows the target to expand an inline asm
540 /// call to be explicit llvm code if it wants to. This is useful for
541 /// turning simple inline asms into LLVM intrinsics, which gives the
542 /// compiler more information about the behavior of the code.
543 virtual bool ExpandInlineAsm(CallInst *CI) const {
547 /// emitUsedDirectiveFor - This hook allows targets to selectively decide
548 /// not to emit the UsedDirective for some symbols in llvm.used.
549 virtual bool emitUsedDirectiveFor(const GlobalValue *GV,
550 Mangler *Mang) const {
554 /// PreferredEHDataFormat - This hook allows the target to select data
555 /// format used for encoding pointers in exception handling data. Reason is
556 /// 0 for data, 1 for code labels, 2 for function pointers. Global is true
557 /// if the symbol can be relocated.
558 virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
561 /// SectionKindForGlobal - This hook allows the target to select proper
562 /// section kind used for global emission.
563 virtual SectionKind::Kind
564 SectionKindForGlobal(const GlobalValue *GV) const;
567 /// SectionFlagsForGlobal - This hook allows the target to select proper
568 /// section flags either for given global or for section.
570 SectionFlagsForGlobal(const GlobalValue *GV = NULL,
571 const char* name = NULL) const;
573 /// SectionForGlobal - This hooks returns proper section name for given
574 /// global with all necessary flags and marks.
575 virtual std::string SectionForGlobal(const GlobalValue *GV) const;
577 // Helper methods for SectionForGlobal
578 virtual std::string UniqueSectionForGlobal(const GlobalValue* GV,
579 SectionKind::Kind kind) const;
581 const std::string& getSectionFlags(unsigned Flags) const;
582 virtual std::string printSectionFlags(unsigned flags) const { return ""; }
584 virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
586 virtual const Section* SelectSectionForMachineConst(const Type *Ty) const;
588 /// getSLEB128Size - Compute the number of bytes required for a signed
591 static unsigned getSLEB128Size(int Value);
593 /// getULEB128Size - Compute the number of bytes required for an unsigned
596 static unsigned getULEB128Size(unsigned Value);
600 const char *getTextSection() const {
603 const Section *getTextSection_() const {
606 const char *getDataSection() const {
609 const Section *getDataSection_() const {
612 const char *getBSSSection() const {
615 const Section *getBSSSection_() const {
618 const char *getReadOnlySection() const {
619 return ReadOnlySection;
621 const Section *getReadOnlySection_() const {
622 return ReadOnlySection_;
624 const Section *getSmallDataSection() const {
625 return SmallDataSection;
627 const Section *getSmallBSSSection() const {
628 return SmallBSSSection;
630 const Section *getSmallRODataSection() const {
631 return SmallRODataSection;
633 const char *getTLSDataSection() const {
634 return TLSDataSection;
636 const Section *getTLSDataSection_() const {
637 return TLSDataSection_;
639 const char *getTLSBSSSection() const {
640 return TLSBSSSection;
642 const Section *getTLSBSSSection_() const {
643 return TLSBSSSection_;
645 const char *getZeroFillDirective() const {
646 return ZeroFillDirective;
648 const char *getNonexecutableStackDirective() const {
649 return NonexecutableStackDirective;
651 bool needsSet() const {
654 const char *getPCSymbol() const {
657 char getSeparatorChar() const {
658 return SeparatorChar;
660 const char *getCommentString() const {
661 return CommentString;
663 const char *getGlobalPrefix() const {
666 const char *getPrivateGlobalPrefix() const {
667 return PrivateGlobalPrefix;
669 const char *getLessPrivateGlobalPrefix() const {
670 return LessPrivateGlobalPrefix;
672 const char *getJumpTableSpecialLabelPrefix() const {
673 return JumpTableSpecialLabelPrefix;
675 const char *getGlobalVarAddrPrefix() const {
676 return GlobalVarAddrPrefix;
678 const char *getGlobalVarAddrSuffix() const {
679 return GlobalVarAddrSuffix;
681 const char *getFunctionAddrPrefix() const {
682 return FunctionAddrPrefix;
684 const char *getFunctionAddrSuffix() const {
685 return FunctionAddrSuffix;
687 const char *getPersonalityPrefix() const {
688 return PersonalityPrefix;
690 const char *getPersonalitySuffix() const {
691 return PersonalitySuffix;
693 bool getNeedsIndirectEncoding() const {
694 return NeedsIndirectEncoding;
696 const char *getInlineAsmStart() const {
697 return InlineAsmStart;
699 const char *getInlineAsmEnd() const {
702 unsigned getAssemblerDialect() const {
703 return AssemblerDialect;
705 const char *getStringConstantPrefix() const {
706 return StringConstantPrefix;
708 const char *getZeroDirective() const {
709 return ZeroDirective;
711 const char *getZeroDirectiveSuffix() const {
712 return ZeroDirectiveSuffix;
714 const char *getAsciiDirective() const {
715 return AsciiDirective;
717 const char *getAscizDirective() const {
718 return AscizDirective;
720 const char *getData8bitsDirective() const {
721 return Data8bitsDirective;
723 const char *getData16bitsDirective() const {
724 return Data16bitsDirective;
726 const char *getData32bitsDirective() const {
727 return Data32bitsDirective;
729 const char *getData64bitsDirective() const {
730 return Data64bitsDirective;
732 const char *getJumpTableDirective() const {
733 return JumpTableDirective;
735 const char *getAlignDirective() const {
736 return AlignDirective;
738 bool getAlignmentIsInBytes() const {
739 return AlignmentIsInBytes;
741 unsigned getTextAlignFillValue() const {
742 return TextAlignFillValue;
744 const char *getSwitchToSectionDirective() const {
745 return SwitchToSectionDirective;
747 const char *getTextSectionStartSuffix() const {
748 return TextSectionStartSuffix;
750 const char *getDataSectionStartSuffix() const {
751 return DataSectionStartSuffix;
753 const char *getSectionEndDirectiveSuffix() const {
754 return SectionEndDirectiveSuffix;
756 const char *getConstantPoolSection() const {
757 return ConstantPoolSection;
759 const char *getJumpTableDataSection() const {
760 return JumpTableDataSection;
762 const char *getCStringSection() const {
763 return CStringSection;
765 const Section *getCStringSection_() const {
766 return CStringSection_;
768 const char *getStaticCtorsSection() const {
769 return StaticCtorsSection;
771 const char *getStaticDtorsSection() const {
772 return StaticDtorsSection;
774 const char *getFourByteConstantSection() const {
775 return FourByteConstantSection;
777 const Section *getFourByteConstantSection_() const {
778 return FourByteConstantSection_;
780 const char *getEightByteConstantSection() const {
781 return EightByteConstantSection;
783 const Section *getEightByteConstantSection_() const {
784 return EightByteConstantSection_;
786 const char *getSixteenByteConstantSection() const {
787 return SixteenByteConstantSection;
789 const Section *getSixteenByteConstantSection_() const {
790 return SixteenByteConstantSection_;
792 const char *getGlobalDirective() const {
793 return GlobalDirective;
795 const char *getSetDirective() const {
798 const char *getLCOMMDirective() const {
799 return LCOMMDirective;
801 const char *getCOMMDirective() const {
802 return COMMDirective;
804 bool getCOMMDirectiveTakesAlignment() const {
805 return COMMDirectiveTakesAlignment;
807 bool hasDotTypeDotSizeDirective() const {
808 return HasDotTypeDotSizeDirective;
810 const char *getUsedDirective() const {
811 return UsedDirective;
813 const char *getWeakRefDirective() const {
814 return WeakRefDirective;
816 const char *getWeakDefDirective() const {
817 return WeakDefDirective;
819 const char *getHiddenDirective() const {
820 return HiddenDirective;
822 const char *getProtectedDirective() const {
823 return ProtectedDirective;
825 bool isAbsoluteDebugSectionOffsets() const {
826 return AbsoluteDebugSectionOffsets;
828 bool isAbsoluteEHSectionOffsets() const {
829 return AbsoluteEHSectionOffsets;
831 bool hasLEB128() const {
834 bool hasDotLocAndDotFile() const {
835 return HasDotLocAndDotFile;
837 bool doesSupportDebugInformation() const {
838 return SupportsDebugInformation;
840 bool doesSupportExceptionHandling() const {
841 return SupportsExceptionHandling;
843 bool doesDwarfRequireFrameSection() const {
844 return DwarfRequiresFrameSection;
846 const char *getGlobalEHDirective() const {
847 return GlobalEHDirective;
849 bool getSupportsWeakOmittedEHFrame() const {
850 return SupportsWeakOmittedEHFrame;
852 const char *getDwarfSectionOffsetDirective() const {
853 return DwarfSectionOffsetDirective;
855 const char *getDwarfAbbrevSection() const {
856 return DwarfAbbrevSection;
858 const char *getDwarfInfoSection() const {
859 return DwarfInfoSection;
861 const char *getDwarfLineSection() const {
862 return DwarfLineSection;
864 const char *getDwarfFrameSection() const {
865 return DwarfFrameSection;
867 const char *getDwarfPubNamesSection() const {
868 return DwarfPubNamesSection;
870 const char *getDwarfPubTypesSection() const {
871 return DwarfPubTypesSection;
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 *getDwarfMacInfoSection() const {
886 return DwarfMacInfoSection;
888 const char *getDwarfEHFrameSection() const {
889 return DwarfEHFrameSection;
891 const char *getDwarfExceptionSection() const {
892 return DwarfExceptionSection;
894 const char *const *getAsmCBE() const {