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