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