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