Constify
[oota-llvm.git] / include / llvm / Target / TargetAsmInfo.h
1 //===-- llvm/Target/TargetAsmInfo.h - Asm info ------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
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.
13 //
14 //===----------------------------------------------------------------------===//
15
16 #ifndef LLVM_TARGET_ASM_INFO_H
17 #define LLVM_TARGET_ASM_INFO_H
18
19 #include "llvm/Support/DataTypes.h"
20
21 namespace llvm {
22   // DWARF encoding query type
23   namespace DwarfEncoding {
24     enum Target {
25       Data       = 0,
26       CodeLabels = 1,
27       Functions  = 2
28     };
29   }
30
31   namespace SectionKind {
32     enum Kind {
33       Unknown = 0,      ///< Custom section
34       Text,             ///< Text section
35       Data,             ///< Data section
36       BSS,              ///< BSS 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
42     };
43   }
44
45   namespace SectionFlags {
46     enum Flags {
47       None       = 0,
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
56     };
57   }
58
59   struct SectionInfo {
60     SectionKind::Kind   kind;
61     SectionFlags::Flags flags;
62   };
63
64   class TargetMachine;
65   class CallInst;
66   class GlobalValue;
67
68   /// TargetAsmInfo - This class is intended to be used as a base class for asm
69   /// properties and features specific to the target.
70   class TargetAsmInfo {
71   protected:
72     //===------------------------------------------------------------------===//
73     // Properties to be set by the target writer, used to configure asm printer.
74     //
75     
76     /// TextSection - Section directive for standard text.
77     ///
78     const char *TextSection;              // Defaults to ".text".
79     
80     /// DataSection - Section directive for standard data.
81     ///
82     const char *DataSection;              // Defaults to ".data".
83
84     /// BSSSection - Section directive for uninitialized data.  Null if this
85     /// target doesn't support a BSS section.
86     ///
87     const char *BSSSection;               // Default to ".bss".
88
89     /// TLSDataSection - Section directive for Thread Local data.
90     ///
91     const char *TLSDataSection;// Defaults to ".section .tdata,"awT",@progbits".
92
93     /// TLSBSSSection - Section directive for Thread Local uninitialized data.
94     /// Null if this target doesn't support a BSS section.
95     ///
96     const char *TLSBSSSection;// Default to ".section .tbss,"awT",@nobits".
97
98     /// ZeroFillDirective - Directive for emitting a global to the ZeroFill
99     /// section on this target.  Null if this target doesn't support zerofill.
100     const char *ZeroFillDirective;        // Default is null.
101     
102     /// NonexecutableStackDirective - Directive for declaring to the
103     /// linker and beyond that the emitted code does not require stack
104     /// memory to be executable.
105     const char *NonexecutableStackDirective; // Default is null.
106
107     /// NeedsSet - True if target asm treats expressions in data directives
108     /// as linktime-relocatable.  For assembly-time computation, we need to
109     /// use a .set.  Thus:
110     /// .set w, x-y
111     /// .long w
112     /// is computed at assembly time, while
113     /// .long x-y
114     /// is relocated if the relative locations of x and y change at linktime.
115     /// We want both these things in different places.
116     bool NeedsSet;                        // Defaults to false.
117     
118     /// MaxInstLength - This is the maximum possible length of an instruction,
119     /// which is needed to compute the size of an inline asm.
120     unsigned MaxInstLength;               // Defaults to 4.
121     
122     /// PCSymbol - The symbol used to represent the current PC.  Used in PC
123     /// relative expressions.
124     const char *PCSymbol;                 // Defaults to "$".
125
126     /// SeparatorChar - This character, if specified, is used to separate
127     /// instructions from each other when on the same line.  This is used to
128     /// measure inline asm instructions.
129     char SeparatorChar;                   // Defaults to ';'
130
131     /// CommentString - This indicates the comment character used by the
132     /// assembler.
133     const char *CommentString;            // Defaults to "#"
134
135     /// GlobalPrefix - If this is set to a non-empty string, it is prepended
136     /// onto all global symbols.  This is often used for "_" or ".".
137     const char *GlobalPrefix;             // Defaults to ""
138
139     /// PrivateGlobalPrefix - This prefix is used for globals like constant
140     /// pool entries that are completely private to the .o file and should not
141     /// have names in the .o file.  This is often "." or "L".
142     const char *PrivateGlobalPrefix;      // Defaults to "."
143     
144     /// JumpTableSpecialLabelPrefix - If not null, a extra (dead) label is
145     /// emitted before jump tables with the specified prefix.
146     const char *JumpTableSpecialLabelPrefix;  // Default to null.
147     
148     /// GlobalVarAddrPrefix/Suffix - If these are nonempty, these strings
149     /// will enclose any GlobalVariable (that isn't a function)
150     ///
151     const char *GlobalVarAddrPrefix;      // Defaults to ""
152     const char *GlobalVarAddrSuffix;      // Defaults to ""
153
154     /// FunctionAddrPrefix/Suffix - If these are nonempty, these strings
155     /// will enclose any GlobalVariable that points to a function.
156     /// For example, this is used by the IA64 backend to materialize
157     /// function descriptors, by decorating the ".data8" object with the
158     /// @verbatim @fptr( ) @endverbatim
159     /// link-relocation operator.
160     ///
161     const char *FunctionAddrPrefix;       // Defaults to ""
162     const char *FunctionAddrSuffix;       // Defaults to ""
163
164     /// PersonalityPrefix/Suffix - If these are nonempty, these strings will
165     /// enclose any personality function in the common frame section.
166     /// 
167     const char *PersonalityPrefix;        // Defaults to ""
168     const char *PersonalitySuffix;        // Defaults to ""
169
170     /// NeedsIndirectEncoding - If set, we need to set the indirect encoding bit
171     /// for EH in Dwarf.
172     /// 
173     bool NeedsIndirectEncoding;           // Defaults to false
174
175     /// InlineAsmStart/End - If these are nonempty, they contain a directive to
176     /// emit before and after an inline assembly statement.
177     const char *InlineAsmStart;           // Defaults to "#APP\n"
178     const char *InlineAsmEnd;             // Defaults to "#NO_APP\n"
179
180     /// AssemblerDialect - Which dialect of an assembler variant to use.
181     unsigned AssemblerDialect;            // Defaults to 0
182
183     /// StringConstantPrefix - Prefix for FEs to use when generating unnamed
184     /// constant strings.  These names get run through the Mangler later; if
185     /// you want the Mangler not to add the GlobalPrefix as well, 
186     /// use '\1' as the first character.
187     const char *StringConstantPrefix;     // Defaults to ".str"
188
189     //===--- Data Emission Directives -------------------------------------===//
190
191     /// ZeroDirective - this should be set to the directive used to get some
192     /// number of zero bytes emitted to the current section.  Common cases are
193     /// "\t.zero\t" and "\t.space\t".  If this is set to null, the
194     /// Data*bitsDirective's will be used to emit zero bytes.
195     const char *ZeroDirective;            // Defaults to "\t.zero\t"
196     const char *ZeroDirectiveSuffix;      // Defaults to ""
197
198     /// AsciiDirective - This directive allows emission of an ascii string with
199     /// the standard C escape characters embedded into it.
200     const char *AsciiDirective;           // Defaults to "\t.ascii\t"
201     
202     /// AscizDirective - If not null, this allows for special handling of
203     /// zero terminated strings on this target.  This is commonly supported as
204     /// ".asciz".  If a target doesn't support this, it can be set to null.
205     const char *AscizDirective;           // Defaults to "\t.asciz\t"
206
207     /// DataDirectives - These directives are used to output some unit of
208     /// integer data to the current section.  If a data directive is set to
209     /// null, smaller data directives will be used to emit the large sizes.
210     const char *Data8bitsDirective;       // Defaults to "\t.byte\t"
211     const char *Data16bitsDirective;      // Defaults to "\t.short\t"
212     const char *Data32bitsDirective;      // Defaults to "\t.long\t"
213     const char *Data64bitsDirective;      // Defaults to "\t.quad\t"
214
215     //===--- Alignment Information ----------------------------------------===//
216
217     /// AlignDirective - The directive used to emit round up to an alignment
218     /// boundary.
219     ///
220     const char *AlignDirective;           // Defaults to "\t.align\t"
221
222     /// AlignmentIsInBytes - If this is true (the default) then the asmprinter
223     /// emits ".align N" directives, where N is the number of bytes to align to.
224     /// Otherwise, it emits ".align log2(N)", e.g. 3 to align to an 8 byte
225     /// boundary.
226     bool AlignmentIsInBytes;              // Defaults to true
227
228     /// TextAlignFillValue - If non-zero, this is used to fill the executable
229     /// space created as the result of a alignment directive.
230     unsigned TextAlignFillValue;
231
232     //===--- Section Switching Directives ---------------------------------===//
233     
234     /// SwitchToSectionDirective - This is the directive used when we want to
235     /// emit a global to an arbitrary section.  The section name is emited after
236     /// this.
237     const char *SwitchToSectionDirective; // Defaults to "\t.section\t"
238     
239     /// TextSectionStartSuffix - This is printed after each start of section
240     /// directive for text sections.
241     const char *TextSectionStartSuffix;   // Defaults to "".
242
243     /// DataSectionStartSuffix - This is printed after each start of section
244     /// directive for data sections.
245     const char *DataSectionStartSuffix;   // Defaults to "".
246     
247     /// SectionEndDirectiveSuffix - If non-null, the asm printer will close each
248     /// section with the section name and this suffix printed.
249     const char *SectionEndDirectiveSuffix;// Defaults to null.
250     
251     /// ConstantPoolSection - This is the section that we SwitchToSection right
252     /// before emitting the constant pool for a function.
253     const char *ConstantPoolSection;      // Defaults to "\t.section .rodata"
254
255     /// JumpTableDataSection - This is the section that we SwitchToSection right
256     /// before emitting the jump tables for a function when the relocation model
257     /// is not PIC.
258     const char *JumpTableDataSection;     // Defaults to "\t.section .rodata"
259     
260     /// JumpTableDirective - if non-null, the directive to emit before a jump
261     /// table.
262     const char *JumpTableDirective;
263
264     /// CStringSection - If not null, this allows for special handling of
265     /// cstring constants (null terminated string that does not contain any
266     /// other null bytes) on this target. This is commonly supported as
267     /// ".cstring".
268     const char *CStringSection;           // Defaults to NULL
269
270     /// StaticCtorsSection - This is the directive that is emitted to switch to
271     /// a section to emit the static constructor list.
272     /// Defaults to "\t.section .ctors,\"aw\",@progbits".
273     const char *StaticCtorsSection;
274
275     /// StaticDtorsSection - This is the directive that is emitted to switch to
276     /// a section to emit the static destructor list.
277     /// Defaults to "\t.section .dtors,\"aw\",@progbits".
278     const char *StaticDtorsSection;
279
280     /// FourByteConstantSection, EightByteConstantSection,
281     /// SixteenByteConstantSection - These are special sections where we place
282     /// 4-, 8-, and 16- byte constant literals.
283     const char *FourByteConstantSection;
284     const char *EightByteConstantSection;
285     const char *SixteenByteConstantSection;
286
287     /// ReadOnlySection - This is the directive that is emitted to switch to a
288     /// read-only section for constant data (e.g. data declared const,
289     /// jump tables).
290     const char *ReadOnlySection;          // Defaults to NULL
291
292     //===--- Global Variable Emission Directives --------------------------===//
293     
294     /// GlobalDirective - This is the directive used to declare a global entity.
295     ///
296     const char *GlobalDirective;          // Defaults to NULL.
297     
298     /// SetDirective - This is the name of a directive that can be used to tell
299     /// the assembler to set the value of a variable to some expression.
300     const char *SetDirective;             // Defaults to null.
301     
302     /// LCOMMDirective - This is the name of a directive (if supported) that can
303     /// be used to efficiently declare a local (internal) block of zero
304     /// initialized data in the .bss/.data section.  The syntax expected is:
305     /// @verbatim <LCOMMDirective> SYMBOLNAME LENGTHINBYTES, ALIGNMENT
306     /// @endverbatim
307     const char *LCOMMDirective;           // Defaults to null.
308     
309     const char *COMMDirective;            // Defaults to "\t.comm\t".
310
311     /// COMMDirectiveTakesAlignment - True if COMMDirective take a third
312     /// argument that specifies the alignment of the declaration.
313     bool COMMDirectiveTakesAlignment;     // Defaults to true.
314     
315     /// HasDotTypeDotSizeDirective - True if the target has .type and .size
316     /// directives, this is true for most ELF targets.
317     bool HasDotTypeDotSizeDirective;      // Defaults to true.
318     
319     /// UsedDirective - This directive, if non-null, is used to declare a global
320     /// as being used somehow that the assembler can't see.  This prevents dead
321     /// code elimination on some targets.
322     const char *UsedDirective;            // Defaults to null.
323
324     /// WeakRefDirective - This directive, if non-null, is used to declare a
325     /// global as being a weak undefined symbol.
326     const char *WeakRefDirective;         // Defaults to null.
327     
328     /// WeakDefDirective - This directive, if non-null, is used to declare a
329     /// global as being a weak defined symbol.
330     const char *WeakDefDirective;         // Defaults to null.
331     
332     /// HiddenDirective - This directive, if non-null, is used to declare a
333     /// global or function as having hidden visibility.
334     const char *HiddenDirective;          // Defaults to "\t.hidden\t".
335
336     /// ProtectedDirective - This directive, if non-null, is used to declare a
337     /// global or function as having protected visibility.
338     const char *ProtectedDirective;       // Defaults to "\t.protected\t".
339
340     //===--- Dwarf Emission Directives -----------------------------------===//
341
342     /// AbsoluteDebugSectionOffsets - True if we should emit abolute section
343     /// offsets for debug information. Defaults to false.
344     bool AbsoluteDebugSectionOffsets;
345
346     /// AbsoluteEHSectionOffsets - True if we should emit abolute section
347     /// offsets for EH information. Defaults to false.
348     bool AbsoluteEHSectionOffsets;
349
350     /// HasLEB128 - True if target asm supports leb128 directives.
351     ///
352     bool HasLEB128; // Defaults to false.
353     
354     /// hasDotLocAndDotFile - True if target asm supports .loc and .file
355     /// directives for emitting debugging information.
356     ///
357     bool HasDotLocAndDotFile; // Defaults to false.
358     
359     /// SupportsDebugInformation - True if target supports emission of debugging
360     /// information.
361     bool SupportsDebugInformation;
362         
363     /// SupportsExceptionHandling - True if target supports
364     /// exception handling.
365     ///
366     bool SupportsExceptionHandling; // Defaults to false.
367     
368     /// RequiresFrameSection - true if the Dwarf2 output needs a frame section
369     ///
370     bool DwarfRequiresFrameSection; // Defaults to true.
371
372     /// GlobalEHDirective - This is the directive used to make exception frame
373     /// tables globally visible.
374     ///
375     const char *GlobalEHDirective;          // Defaults to NULL.
376
377     /// SupportsWeakEmptyEHFrame - True if target assembler and linker will
378     /// handle a weak_definition of constant 0 for an omitted EH frame.
379     bool SupportsWeakOmittedEHFrame;  // Defaults to true.
380
381     /// DwarfSectionOffsetDirective - Special section offset directive.
382     const char* DwarfSectionOffsetDirective; // Defaults to NULL
383     
384     /// DwarfAbbrevSection - Section directive for Dwarf abbrev.
385     ///
386     const char *DwarfAbbrevSection; // Defaults to ".debug_abbrev".
387
388     /// DwarfInfoSection - Section directive for Dwarf info.
389     ///
390     const char *DwarfInfoSection; // Defaults to ".debug_info".
391
392     /// DwarfLineSection - Section directive for Dwarf info.
393     ///
394     const char *DwarfLineSection; // Defaults to ".debug_line".
395     
396     /// DwarfFrameSection - Section directive for Dwarf info.
397     ///
398     const char *DwarfFrameSection; // Defaults to ".debug_frame".
399     
400     /// DwarfPubNamesSection - Section directive for Dwarf info.
401     ///
402     const char *DwarfPubNamesSection; // Defaults to ".debug_pubnames".
403     
404     /// DwarfPubTypesSection - Section directive for Dwarf info.
405     ///
406     const char *DwarfPubTypesSection; // Defaults to ".debug_pubtypes".
407     
408     /// DwarfStrSection - Section directive for Dwarf info.
409     ///
410     const char *DwarfStrSection; // Defaults to ".debug_str".
411
412     /// DwarfLocSection - Section directive for Dwarf info.
413     ///
414     const char *DwarfLocSection; // Defaults to ".debug_loc".
415
416     /// DwarfARangesSection - Section directive for Dwarf info.
417     ///
418     const char *DwarfARangesSection; // Defaults to ".debug_aranges".
419
420     /// DwarfRangesSection - Section directive for Dwarf info.
421     ///
422     const char *DwarfRangesSection; // Defaults to ".debug_ranges".
423
424     /// DwarfMacInfoSection - Section directive for Dwarf info.
425     ///
426     const char *DwarfMacInfoSection; // Defaults to ".debug_macinfo".
427     
428     /// DwarfEHFrameSection - Section directive for Exception frames.
429     ///
430     const char *DwarfEHFrameSection; // Defaults to ".eh_frame".
431     
432     /// DwarfExceptionSection - Section directive for Exception table.
433     ///
434     const char *DwarfExceptionSection; // Defaults to ".gcc_except_table".
435
436     //===--- CBE Asm Translation Table -----------------------------------===//
437
438     const char *const *AsmTransCBE; // Defaults to empty
439
440   public:
441     TargetAsmInfo();
442     virtual ~TargetAsmInfo();
443
444     /// Measure the specified inline asm to determine an approximation of its
445     /// length.
446     virtual unsigned getInlineAsmLength(const char *Str) const;
447
448     /// ExpandInlineAsm - This hook allows the target to expand an inline asm
449     /// call to be explicit llvm code if it wants to.  This is useful for
450     /// turning simple inline asms into LLVM intrinsics, which gives the
451     /// compiler more information about the behavior of the code.
452     virtual bool ExpandInlineAsm(CallInst *CI) const {
453       return false;
454     }
455
456     /// PreferredEHDataFormat - This hook allows the target to select data
457     /// format used for encoding pointers in exception handling data. Reason is
458     /// 0 for data, 1 for code labels, 2 for function pointers. Global is true
459     /// if the symbol can be relocated.
460     virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,
461                                            bool Global) const;
462
463     /// SectionKindForGlobal - This hook allows the target to select proper
464     /// section kind used for global emission.
465     SectionKind::Kind SectionKindForGlobal(const GlobalValue *GV) const;
466
467
468     /// SectionFlagsForGlobal - This hook allows the target to select proper
469     /// section flags either for given global or for section.
470     unsigned
471     SectionFlagsForGlobal(const GlobalValue *GV = NULL,
472                           const char* name = NULL) const;
473
474     // Accessors.
475     //
476     const char *getTextSection() const {
477       return TextSection;
478     }
479     const char *getDataSection() const {
480       return DataSection;
481     }
482     const char *getBSSSection() const {
483       return BSSSection;
484     }
485     const char *getTLSDataSection() const {
486       return TLSDataSection;
487     }
488     const char *getTLSBSSSection() const {
489       return TLSBSSSection;
490     }
491     const char *getZeroFillDirective() const {
492       return ZeroFillDirective;
493     }
494     const char *getNonexecutableStackDirective() const {
495       return NonexecutableStackDirective;
496     }
497     bool needsSet() const {
498       return NeedsSet;
499     }
500     const char *getPCSymbol() const {
501       return PCSymbol;
502     }
503     char getSeparatorChar() const {
504       return SeparatorChar;
505     }
506     const char *getCommentString() const {
507       return CommentString;
508     }
509     const char *getGlobalPrefix() const {
510       return GlobalPrefix;
511     }
512     const char *getPrivateGlobalPrefix() const {
513       return PrivateGlobalPrefix;
514     }
515     const char *getJumpTableSpecialLabelPrefix() const {
516       return JumpTableSpecialLabelPrefix;
517     }
518     const char *getGlobalVarAddrPrefix() const {
519       return GlobalVarAddrPrefix;
520     }
521     const char *getGlobalVarAddrSuffix() const {
522       return GlobalVarAddrSuffix;
523     }
524     const char *getFunctionAddrPrefix() const {
525       return FunctionAddrPrefix;
526     }
527     const char *getFunctionAddrSuffix() const {
528       return FunctionAddrSuffix;
529     }
530     const char *getPersonalityPrefix() const {
531       return PersonalityPrefix;
532     }
533     const char *getPersonalitySuffix() const {
534       return PersonalitySuffix;
535     }
536     bool getNeedsIndirectEncoding() const {
537       return NeedsIndirectEncoding;
538     }
539     const char *getInlineAsmStart() const {
540       return InlineAsmStart;
541     }
542     const char *getInlineAsmEnd() const {
543       return InlineAsmEnd;
544     }
545     unsigned getAssemblerDialect() const {
546       return AssemblerDialect;
547     }
548     const char *getStringConstantPrefix() const {
549       return StringConstantPrefix;
550     }
551     const char *getZeroDirective() const {
552       return ZeroDirective;
553     }
554     const char *getZeroDirectiveSuffix() const {
555       return ZeroDirectiveSuffix;
556     }
557     const char *getAsciiDirective() const {
558       return AsciiDirective;
559     }
560     const char *getAscizDirective() const {
561       return AscizDirective;
562     }
563     const char *getData8bitsDirective() const {
564       return Data8bitsDirective;
565     }
566     const char *getData16bitsDirective() const {
567       return Data16bitsDirective;
568     }
569     const char *getData32bitsDirective() const {
570       return Data32bitsDirective;
571     }
572     const char *getData64bitsDirective() const {
573       return Data64bitsDirective;
574     }
575     const char *getJumpTableDirective() const {
576       return JumpTableDirective;
577     }
578     const char *getAlignDirective() const {
579       return AlignDirective;
580     }
581     bool getAlignmentIsInBytes() const {
582       return AlignmentIsInBytes;
583     }
584     unsigned getTextAlignFillValue() const {
585       return TextAlignFillValue;
586     }
587     const char *getSwitchToSectionDirective() const {
588       return SwitchToSectionDirective;
589     }
590     const char *getTextSectionStartSuffix() const {
591       return TextSectionStartSuffix;
592     }
593     const char *getDataSectionStartSuffix() const {
594       return DataSectionStartSuffix;
595     }
596     const char *getSectionEndDirectiveSuffix() const {
597       return SectionEndDirectiveSuffix;
598     }
599     const char *getConstantPoolSection() const {
600       return ConstantPoolSection;
601     }
602     const char *getJumpTableDataSection() const {
603       return JumpTableDataSection;
604     }
605     const char *getCStringSection() const {
606       return CStringSection;
607     }
608     const char *getStaticCtorsSection() const {
609       return StaticCtorsSection;
610     }
611     const char *getStaticDtorsSection() const {
612       return StaticDtorsSection;
613     }
614     const char *getFourByteConstantSection() const {
615       return FourByteConstantSection;
616     }
617     const char *getEightByteConstantSection() const {
618       return EightByteConstantSection;
619     }
620     const char *getSixteenByteConstantSection() const {
621       return SixteenByteConstantSection;
622     }
623     const char *getReadOnlySection() const {
624       return ReadOnlySection;
625     }
626     const char *getGlobalDirective() const {
627       return GlobalDirective;
628     }
629     const char *getSetDirective() const {
630       return SetDirective;
631     }
632     const char *getLCOMMDirective() const {
633       return LCOMMDirective;
634     }
635     const char *getCOMMDirective() const {
636       return COMMDirective;
637     }
638     bool getCOMMDirectiveTakesAlignment() const {
639       return COMMDirectiveTakesAlignment;
640     }
641     bool hasDotTypeDotSizeDirective() const {
642       return HasDotTypeDotSizeDirective;
643     }
644     const char *getUsedDirective() const {
645       return UsedDirective;
646     }
647     const char *getWeakRefDirective() const {
648       return WeakRefDirective;
649     }
650     const char *getWeakDefDirective() const {
651       return WeakDefDirective;
652     }
653     const char *getHiddenDirective() const {
654       return HiddenDirective;
655     }
656     const char *getProtectedDirective() const {
657       return ProtectedDirective;
658     }
659     bool isAbsoluteDebugSectionOffsets() const {
660       return AbsoluteDebugSectionOffsets;
661     }
662     bool isAbsoluteEHSectionOffsets() const {
663       return AbsoluteEHSectionOffsets;
664     }
665     bool hasLEB128() const {
666       return HasLEB128;
667     }
668     bool hasDotLocAndDotFile() const {
669       return HasDotLocAndDotFile;
670     }
671     bool doesSupportDebugInformation() const {
672       return SupportsDebugInformation;
673     }
674     bool doesSupportExceptionHandling() const {
675       return SupportsExceptionHandling;
676     }
677     bool doesDwarfRequireFrameSection() const {
678       return DwarfRequiresFrameSection;
679     }
680     const char *getGlobalEHDirective() const {
681       return GlobalEHDirective;
682     }
683     bool getSupportsWeakOmittedEHFrame() const {
684       return SupportsWeakOmittedEHFrame;
685     }
686     const char *getDwarfSectionOffsetDirective() const {
687       return DwarfSectionOffsetDirective;
688     }
689     const char *getDwarfAbbrevSection() const {
690       return DwarfAbbrevSection;
691     }
692     const char *getDwarfInfoSection() const {
693       return DwarfInfoSection;
694     }
695     const char *getDwarfLineSection() const {
696       return DwarfLineSection;
697     }
698     const char *getDwarfFrameSection() const {
699       return DwarfFrameSection;
700     }
701     const char *getDwarfPubNamesSection() const {
702       return DwarfPubNamesSection;
703     }
704     const char *getDwarfPubTypesSection() const {
705       return DwarfPubTypesSection;
706     }
707     const char *getDwarfStrSection() const {
708       return DwarfStrSection;
709     }
710     const char *getDwarfLocSection() const {
711       return DwarfLocSection;
712     }
713     const char *getDwarfARangesSection() const {
714       return DwarfARangesSection;
715     }
716     const char *getDwarfRangesSection() const {
717       return DwarfRangesSection;
718     }
719     const char *getDwarfMacInfoSection() const {
720       return DwarfMacInfoSection;
721     }
722     const char *getDwarfEHFrameSection() const {
723       return DwarfEHFrameSection;
724     }
725     const char *getDwarfExceptionSection() const {
726       return DwarfExceptionSection;
727     }
728     const char *const *getAsmCBE() const {
729       return AsmTransCBE;
730     }
731   };
732 }
733
734 #endif
735