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