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