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