<div dir="ltr">Please avoid doing this kind of blanket change in the future, it makes git/svn blame harder to use effectively.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 12:19 AM, Saleem Abdulrasool <span dir="ltr"><<a href="mailto:compnerd@compnerd.org" target="_blank">compnerd@compnerd.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: compnerd<br>
Date: Tue Jun 10 23:19:19 2014<br>
New Revision: 210633<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=210633&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=210633&view=rev</a><br>
Log:<br>
MC: clang-format MCAsmInfo<br>
<br>
Apply clang-format over the header. Reformat the docs to current LLVM style.<br>
NFC.<br>
<br>
Modified:<br>
llvm/trunk/include/llvm/MC/MCAsmInfo.h<br>
<br>
Modified: llvm/trunk/include/llvm/MC/MCAsmInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAsmInfo.h?rev=210633&r1=210632&r2=210633&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAsmInfo.h?rev=210633&r1=210632&r2=210633&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/MC/MCAsmInfo.h (original)<br>
+++ llvm/trunk/include/llvm/MC/MCAsmInfo.h Tue Jun 10 23:19:19 2014<br>
@@ -23,546 +23,477 @@<br>
#include <vector><br>
<br>
namespace llvm {<br>
- class MCExpr;<br>
- class MCSection;<br>
- class MCStreamer;<br>
- class MCSymbol;<br>
- class MCContext;<br>
-<br>
- namespace ExceptionHandling {<br>
- enum ExceptionsType { None, DwarfCFI, SjLj, ARM, Win64 };<br>
- }<br>
-<br>
- namespace LCOMM {<br>
- enum LCOMMType { NoAlignment, ByteAlignment, Log2Alignment };<br>
- }<br>
-<br>
- /// MCAsmInfo - This class is intended to be used as a base class for asm<br>
- /// properties and features specific to the target.<br>
- class MCAsmInfo {<br>
- protected:<br>
- //===------------------------------------------------------------------===//<br>
- // Properties to be set by the target writer, used to configure asm printer.<br>
- //<br>
-<br>
- /// PointerSize - Pointer size in bytes.<br>
- /// Default is 4.<br>
- unsigned PointerSize;<br>
-<br>
- /// CalleeSaveStackSlotSize - Size of the stack slot reserved for<br>
- /// callee-saved registers, in bytes.<br>
- /// Default is same as pointer size.<br>
- unsigned CalleeSaveStackSlotSize;<br>
-<br>
- /// IsLittleEndian - True if target is little endian.<br>
- /// Default is true.<br>
- bool IsLittleEndian;<br>
-<br>
- /// StackGrowsUp - True if target stack grow up.<br>
- /// Default is false.<br>
- bool StackGrowsUp;<br>
-<br>
- /// HasSubsectionsViaSymbols - True if this target has the MachO<br>
- /// .subsections_via_symbols directive.<br>
- bool HasSubsectionsViaSymbols; // Default is false.<br>
-<br>
- /// HasMachoZeroFillDirective - True if this is a MachO target that supports<br>
- /// the macho-specific .zerofill directive for emitting BSS Symbols.<br>
- bool HasMachoZeroFillDirective; // Default is false.<br>
-<br>
- /// HasMachoTBSSDirective - True if this is a MachO target that supports<br>
- /// the macho-specific .tbss directive for emitting thread local BSS Symbols<br>
- bool HasMachoTBSSDirective; // Default is false.<br>
-<br>
- /// HasStaticCtorDtorReferenceInStaticMode - True if the compiler should<br>
- /// emit a ".reference .constructors_used" or ".reference .destructors_used"<br>
- /// directive after the a static ctor/dtor list. This directive is only<br>
- /// emitted in Static relocation model.<br>
- bool HasStaticCtorDtorReferenceInStaticMode; // Default is false.<br>
-<br>
- /// LinkerRequiresNonEmptyDwarfLines - True if the linker has a bug and<br>
- /// requires that the debug_line section be of a minimum size. In practice<br>
- /// such a linker requires a non-empty line sequence if a file is present.<br>
- bool LinkerRequiresNonEmptyDwarfLines; // Default to false.<br>
-<br>
- /// MaxInstLength - This is the maximum possible length of an instruction,<br>
- /// which is needed to compute the size of an inline asm.<br>
- unsigned MaxInstLength; // Defaults to 4.<br>
-<br>
- /// MinInstAlignment - Every possible instruction length is a multiple of<br>
- /// this value. Factored out in .debug_frame and .debug_line.<br>
- unsigned MinInstAlignment; // Defaults to 1.<br>
-<br>
- /// DollarIsPC - The '$' token, when not referencing an identifier or<br>
- /// constant, refers to the current PC.<br>
- bool DollarIsPC; // Defaults to false.<br>
-<br>
- /// SeparatorString - This string, if specified, is used to separate<br>
- /// instructions from each other when on the same line.<br>
- const char *SeparatorString; // Defaults to ';'<br>
-<br>
- /// CommentString - This indicates the comment character used by the<br>
- /// assembler.<br>
- const char *CommentString; // Defaults to "#"<br>
-<br>
- /// LabelSuffix - This is appended to emitted labels.<br>
- const char *LabelSuffix; // Defaults to ":"<br>
-<br>
- /// LabelSuffix - This is appended to emitted labels.<br>
- const char *DebugLabelSuffix; // Defaults to ":"<br>
-<br>
- /// This prefix is used for globals like constant pool entries that are<br>
- /// completely private to the .s file and should not have names in the .o<br>
- /// file.<br>
- const char *PrivateGlobalPrefix; // Defaults to "L"<br>
-<br>
- /// This prefix is used for symbols that should be passed through the<br>
- /// assembler but be removed by the linker. This is 'l' on Darwin,<br>
- /// currently used for some ObjC metadata.<br>
- /// The default of "" meast that for this system a plain private symbol<br>
- /// should be used.<br>
- const char *LinkerPrivateGlobalPrefix; // Defaults to "".<br>
-<br>
- /// InlineAsmStart/End - If these are nonempty, they contain a directive to<br>
- /// emit before and after an inline assembly statement.<br>
- const char *InlineAsmStart; // Defaults to "#APP\n"<br>
- const char *InlineAsmEnd; // Defaults to "#NO_APP\n"<br>
-<br>
- /// Code16Directive, Code32Directive, Code64Directive - These are assembly<br>
- /// directives that tells the assembler to interpret the following<br>
- /// instructions differently.<br>
- const char *Code16Directive; // Defaults to ".code16"<br>
- const char *Code32Directive; // Defaults to ".code32"<br>
- const char *Code64Directive; // Defaults to ".code64"<br>
-<br>
- /// AssemblerDialect - Which dialect of an assembler variant to use.<br>
- unsigned AssemblerDialect; // Defaults to 0<br>
-<br>
- /// \brief This is true if the assembler allows @ characters in symbol<br>
- /// names. Defaults to false.<br>
- bool AllowAtInName;<br>
-<br>
- /// UseDataRegionDirectives - This is true if data region markers should<br>
- /// be printed as ".data_region/.end_data_region" directives. If false,<br>
- /// use "$d/$a" labels instead.<br>
- bool UseDataRegionDirectives;<br>
-<br>
- //===--- Data Emission Directives -------------------------------------===//<br>
-<br>
- /// ZeroDirective - this should be set to the directive used to get some<br>
- /// number of zero bytes emitted to the current section. Common cases are<br>
- /// "\t.zero\t" and "\t.space\t". If this is set to null, the<br>
- /// Data*bitsDirective's will be used to emit zero bytes.<br>
- const char *ZeroDirective; // Defaults to "\t.zero\t"<br>
-<br>
- /// AsciiDirective - This directive allows emission of an ascii string with<br>
- /// the standard C escape characters embedded into it.<br>
- const char *AsciiDirective; // Defaults to "\t.ascii\t"<br>
-<br>
- /// AscizDirective - If not null, this allows for special handling of<br>
- /// zero terminated strings on this target. This is commonly supported as<br>
- /// ".asciz". If a target doesn't support this, it can be set to null.<br>
- const char *AscizDirective; // Defaults to "\t.asciz\t"<br>
-<br>
- /// DataDirectives - These directives are used to output some unit of<br>
- /// integer data to the current section. If a data directive is set to<br>
- /// null, smaller data directives will be used to emit the large sizes.<br>
- const char *Data8bitsDirective; // Defaults to "\t.byte\t"<br>
- const char *Data16bitsDirective; // Defaults to "\t.short\t"<br>
- const char *Data32bitsDirective; // Defaults to "\t.long\t"<br>
- const char *Data64bitsDirective; // Defaults to "\t.quad\t"<br>
-<br>
- /// GPRel64Directive - if non-null, a directive that is used to emit a word<br>
- /// which should be relocated as a 64-bit GP-relative offset, e.g. .gpdword<br>
- /// on Mips.<br>
- const char *GPRel64Directive; // Defaults to NULL.<br>
-<br>
- /// GPRel32Directive - if non-null, a directive that is used to emit a word<br>
- /// which should be relocated as a 32-bit GP-relative offset, e.g. .gpword<br>
- /// on Mips or .gprel32 on Alpha.<br>
- const char *GPRel32Directive; // Defaults to NULL.<br>
-<br>
- /// SunStyleELFSectionSwitchSyntax - This is true if this target uses "Sun<br>
- /// Style" syntax for section switching ("#alloc,#write" etc) instead of the<br>
- /// normal ELF syntax (,"a,w") in .section directives.<br>
- bool SunStyleELFSectionSwitchSyntax; // Defaults to false.<br>
-<br>
- /// UsesELFSectionDirectiveForBSS - This is true if this target uses ELF<br>
- /// '.section' directive before the '.bss' one. It's used for PPC/Linux<br>
- /// which doesn't support the '.bss' directive only.<br>
- bool UsesELFSectionDirectiveForBSS; // Defaults to false.<br>
-<br>
- bool NeedsDwarfSectionOffsetDirective;<br>
-<br>
- //===--- Alignment Information ----------------------------------------===//<br>
-<br>
- /// AlignmentIsInBytes - If this is true (the default) then the asmprinter<br>
- /// emits ".align N" directives, where N is the number of bytes to align to.<br>
- /// Otherwise, it emits ".align log2(N)", e.g. 3 to align to an 8 byte<br>
- /// boundary.<br>
- bool AlignmentIsInBytes; // Defaults to true<br>
-<br>
- /// TextAlignFillValue - If non-zero, this is used to fill the executable<br>
- /// space created as the result of a alignment directive.<br>
- unsigned TextAlignFillValue; // Defaults to 0<br>
-<br>
- //===--- Global Variable Emission Directives --------------------------===//<br>
-<br>
- /// GlobalDirective - This is the directive used to declare a global entity.<br>
- ///<br>
- const char *GlobalDirective; // Defaults to NULL.<br>
-<br>
- /// HasSetDirective - True if the assembler supports the .set directive.<br>
- bool HasSetDirective; // Defaults to true.<br>
-<br>
- /// HasAggressiveSymbolFolding - False if the assembler requires that we use<br>
- /// Lc = a - b<br>
- /// .long Lc<br>
- /// instead of<br>
- /// .long a - b<br>
- bool HasAggressiveSymbolFolding; // Defaults to true.<br>
-<br>
- /// COMMDirectiveAlignmentIsInBytes - True is .comm's and .lcomms optional<br>
- /// alignment is to be specified in bytes instead of log2(n).<br>
- bool COMMDirectiveAlignmentIsInBytes; // Defaults to true;<br>
-<br>
- /// LCOMMDirectiveAlignment - Describes if the .lcomm directive for the<br>
- /// target supports an alignment argument and how it is interpreted.<br>
- LCOMM::LCOMMType LCOMMDirectiveAlignmentType; // Defaults to NoAlignment.<br>
-<br>
- /// HasDotTypeDotSizeDirective - True if the target has .type and .size<br>
- /// directives, this is true for most ELF targets.<br>
- bool HasDotTypeDotSizeDirective; // Defaults to true.<br>
-<br>
- /// HasSingleParameterDotFile - True if the target has a single parameter<br>
- /// .file directive, this is true for ELF targets.<br>
- bool HasSingleParameterDotFile; // Defaults to true.<br>
-<br>
- /// hasIdentDirective - True if the target has a .ident directive, this is<br>
- /// true for ELF targets.<br>
- bool HasIdentDirective; // Defaults to false.<br>
-<br>
- /// HasNoDeadStrip - True if this target supports the MachO .no_dead_strip<br>
- /// directive.<br>
- bool HasNoDeadStrip; // Defaults to false.<br>
-<br>
- /// WeakRefDirective - This directive, if non-null, is used to declare a<br>
- /// global as being a weak undefined symbol.<br>
- const char *WeakRefDirective; // Defaults to NULL.<br>
-<br>
- /// True if we have a directive to declare a global as being a weak<br>
- /// defined symbol.<br>
- bool HasWeakDefDirective; // Defaults to false.<br>
-<br>
- /// True if we have a directive to declare a global as being a weak<br>
- /// defined symbol that can be hidden (unexported).<br>
- bool HasWeakDefCanBeHiddenDirective; // Defaults to false.<br>
-<br>
- /// True if we have a .linkonce directive. This is used on cygwin/mingw.<br>
- bool HasLinkOnceDirective; // Defaults to false.<br>
-<br>
- /// HiddenVisibilityAttr - This attribute, if not MCSA_Invalid, is used to<br>
- /// declare a symbol as having hidden visibility.<br>
- MCSymbolAttr HiddenVisibilityAttr; // Defaults to MCSA_Hidden.<br>
-<br>
- /// HiddenDeclarationVisibilityAttr - This attribute, if not MCSA_Invalid,<br>
- /// is used to declare an undefined symbol as having hidden visibility.<br>
- MCSymbolAttr HiddenDeclarationVisibilityAttr; // Defaults to MCSA_Hidden.<br>
-<br>
-<br>
- /// ProtectedVisibilityAttr - This attribute, if not MCSA_Invalid, is used<br>
- /// to declare a symbol as having protected visibility.<br>
- MCSymbolAttr ProtectedVisibilityAttr; // Defaults to MCSA_Protected<br>
-<br>
- //===--- Dwarf Emission Directives -----------------------------------===//<br>
-<br>
- /// HasLEB128 - True if target asm supports leb128 directives.<br>
- bool HasLEB128; // Defaults to false.<br>
-<br>
- /// SupportsDebugInformation - True if target supports emission of debugging<br>
- /// information.<br>
- bool SupportsDebugInformation; // Defaults to false.<br>
-<br>
- /// SupportsExceptionHandling - True if target supports exception handling.<br>
- ExceptionHandling::ExceptionsType ExceptionsType; // Defaults to None<br>
-<br>
- /// DwarfUsesRelocationsAcrossSections - True if Dwarf2 output generally<br>
- /// uses relocations for references to other .debug_* sections.<br>
- bool DwarfUsesRelocationsAcrossSections;<br>
-<br>
- /// DwarfFDESymbolsUseAbsDiff - true if DWARF FDE symbol reference<br>
- /// relocations should be replaced by an absolute difference.<br>
- bool DwarfFDESymbolsUseAbsDiff;<br>
-<br>
- /// DwarfRegNumForCFI - True if dwarf register numbers are printed<br>
- /// instead of symbolic register names in .cfi_* directives.<br>
- bool DwarfRegNumForCFI; // Defaults to false;<br>
-<br>
- /// UseParensForSymbolVariant - True if target uses parens to indicate the<br>
- /// symbol variant instead of @. For example, foo(plt) instead of foo@plt.<br>
- bool UseParensForSymbolVariant; // Defaults to false;<br>
-<br>
- //===--- Prologue State ----------------------------------------------===//<br>
-<br>
- std::vector<MCCFIInstruction> InitialFrameState;<br>
-<br>
- //===--- Integrated Assembler State ----------------------------------===//<br>
- /// Should we use the integrated assembler?<br>
- /// The integrated assembler should be enabled by default (by the<br>
- /// constructors) when failing to parse a valid piece of assembly (inline<br>
- /// or otherwise) is considered a bug. It may then be overridden after<br>
- /// construction (see LLVMTargetMachine::initAsmInfo()).<br>
- bool UseIntegratedAssembler;<br>
-<br>
- /// Compress DWARF debug sections. Defaults to false.<br>
- bool CompressDebugSections;<br>
-<br>
- public:<br>
- explicit MCAsmInfo();<br>
- virtual ~MCAsmInfo();<br>
-<br>
- /// getPointerSize - Get the pointer size in bytes.<br>
- unsigned getPointerSize() const {<br>
- return PointerSize;<br>
- }<br>
-<br>
- /// getCalleeSaveStackSlotSize - Get the callee-saved register stack slot<br>
- /// size in bytes.<br>
- unsigned getCalleeSaveStackSlotSize() const {<br>
- return CalleeSaveStackSlotSize;<br>
- }<br>
-<br>
- /// isLittleEndian - True if the target is little endian.<br>
- bool isLittleEndian() const {<br>
- return IsLittleEndian;<br>
- }<br>
-<br>
- /// isStackGrowthDirectionUp - True if target stack grow up.<br>
- bool isStackGrowthDirectionUp() const {<br>
- return StackGrowsUp;<br>
- }<br>
-<br>
- bool hasSubsectionsViaSymbols() const { return HasSubsectionsViaSymbols; }<br>
-<br>
- // Data directive accessors.<br>
- //<br>
- const char *getData8bitsDirective() const {<br>
- return Data8bitsDirective;<br>
- }<br>
- const char *getData16bitsDirective() const {<br>
- return Data16bitsDirective;<br>
- }<br>
- const char *getData32bitsDirective() const {<br>
- return Data32bitsDirective;<br>
- }<br>
- const char *getData64bitsDirective() const {<br>
- return Data64bitsDirective;<br>
- }<br>
- const char *getGPRel64Directive() const { return GPRel64Directive; }<br>
- const char *getGPRel32Directive() const { return GPRel32Directive; }<br>
-<br>
- /// getNonexecutableStackSection - Targets can implement this method to<br>
- /// specify a section to switch to if the translation unit doesn't have any<br>
- /// trampolines that require an executable stack.<br>
- virtual const MCSection *getNonexecutableStackSection(MCContext &Ctx) const{<br>
- return nullptr;<br>
- }<br>
-<br>
- virtual const MCExpr *<br>
- getExprForPersonalitySymbol(const MCSymbol *Sym,<br>
- unsigned Encoding,<br>
- MCStreamer &Streamer) const;<br>
-<br>
- virtual const MCExpr *<br>
- getExprForFDESymbol(const MCSymbol *Sym,<br>
- unsigned Encoding,<br>
- MCStreamer &Streamer) const;<br>
-<br>
- bool usesSunStyleELFSectionSwitchSyntax() const {<br>
- return SunStyleELFSectionSwitchSyntax;<br>
- }<br>
-<br>
- bool usesELFSectionDirectiveForBSS() const {<br>
- return UsesELFSectionDirectiveForBSS;<br>
- }<br>
-<br>
- bool needsDwarfSectionOffsetDirective() const {<br>
- return NeedsDwarfSectionOffsetDirective;<br>
- }<br>
-<br>
- // Accessors.<br>
- //<br>
- bool hasMachoZeroFillDirective() const { return HasMachoZeroFillDirective; }<br>
- bool hasMachoTBSSDirective() const { return HasMachoTBSSDirective; }<br>
- bool hasStaticCtorDtorReferenceInStaticMode() const {<br>
- return HasStaticCtorDtorReferenceInStaticMode;<br>
- }<br>
- bool getLinkerRequiresNonEmptyDwarfLines() const {<br>
- return LinkerRequiresNonEmptyDwarfLines;<br>
- }<br>
- unsigned getMaxInstLength() const {<br>
- return MaxInstLength;<br>
- }<br>
- unsigned getMinInstAlignment() const {<br>
- return MinInstAlignment;<br>
- }<br>
- bool getDollarIsPC() const {<br>
- return DollarIsPC;<br>
- }<br>
- const char *getSeparatorString() const {<br>
- return SeparatorString;<br>
- }<br>
-<br>
- /// This indicates the column (zero-based) at which asm comments should be<br>
- /// printed.<br>
- unsigned getCommentColumn() const {<br>
- return 40;<br>
- }<br>
-<br>
- const char *getCommentString() const {<br>
- return CommentString;<br>
- }<br>
- const char *getLabelSuffix() const {<br>
- return LabelSuffix;<br>
- }<br>
-<br>
- const char *getDebugLabelSuffix() const {<br>
- return DebugLabelSuffix;<br>
- }<br>
- const char *getPrivateGlobalPrefix() const {<br>
- return PrivateGlobalPrefix;<br>
- }<br>
- bool hasLinkerPrivateGlobalPrefix() const {<br>
- return LinkerPrivateGlobalPrefix[0] != '\0';<br>
- }<br>
- const char *getLinkerPrivateGlobalPrefix() const {<br>
- if (hasLinkerPrivateGlobalPrefix())<br>
- return LinkerPrivateGlobalPrefix;<br>
- return getPrivateGlobalPrefix();<br>
- }<br>
- const char *getInlineAsmStart() const {<br>
- return InlineAsmStart;<br>
- }<br>
- const char *getInlineAsmEnd() const {<br>
- return InlineAsmEnd;<br>
- }<br>
- const char *getCode16Directive() const {<br>
- return Code16Directive;<br>
- }<br>
- const char *getCode32Directive() const {<br>
- return Code32Directive;<br>
- }<br>
- const char *getCode64Directive() const {<br>
- return Code64Directive;<br>
- }<br>
- unsigned getAssemblerDialect() const {<br>
- return AssemblerDialect;<br>
- }<br>
- bool doesAllowAtInName() const {<br>
- return AllowAtInName;<br>
- }<br>
- bool doesSupportDataRegionDirectives() const {<br>
- return UseDataRegionDirectives;<br>
- }<br>
- const char *getZeroDirective() const {<br>
- return ZeroDirective;<br>
- }<br>
- const char *getAsciiDirective() const {<br>
- return AsciiDirective;<br>
- }<br>
- const char *getAscizDirective() const {<br>
- return AscizDirective;<br>
- }<br>
- bool getAlignmentIsInBytes() const {<br>
- return AlignmentIsInBytes;<br>
- }<br>
- unsigned getTextAlignFillValue() const {<br>
- return TextAlignFillValue;<br>
- }<br>
- const char *getGlobalDirective() const {<br>
- return GlobalDirective;<br>
- }<br>
- bool hasSetDirective() const { return HasSetDirective; }<br>
- bool hasAggressiveSymbolFolding() const {<br>
- return HasAggressiveSymbolFolding;<br>
- }<br>
- bool getCOMMDirectiveAlignmentIsInBytes() const {<br>
- return COMMDirectiveAlignmentIsInBytes;<br>
- }<br>
- LCOMM::LCOMMType getLCOMMDirectiveAlignmentType() const {<br>
- return LCOMMDirectiveAlignmentType;<br>
- }<br>
- bool hasDotTypeDotSizeDirective() const {return HasDotTypeDotSizeDirective;}<br>
- bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; }<br>
- bool hasIdentDirective() const { return HasIdentDirective; }<br>
- bool hasNoDeadStrip() const { return HasNoDeadStrip; }<br>
- const char *getWeakRefDirective() const { return WeakRefDirective; }<br>
- bool hasWeakDefDirective() const { return HasWeakDefDirective; }<br>
- bool hasWeakDefCanBeHiddenDirective() const {<br>
- return HasWeakDefCanBeHiddenDirective;<br>
- }<br>
- bool hasLinkOnceDirective() const { return HasLinkOnceDirective; }<br>
-<br>
- MCSymbolAttr getHiddenVisibilityAttr() const { return HiddenVisibilityAttr;}<br>
- MCSymbolAttr getHiddenDeclarationVisibilityAttr() const {<br>
- return HiddenDeclarationVisibilityAttr;<br>
- }<br>
- MCSymbolAttr getProtectedVisibilityAttr() const {<br>
- return ProtectedVisibilityAttr;<br>
- }<br>
- bool hasLEB128() const {<br>
- return HasLEB128;<br>
- }<br>
- bool doesSupportDebugInformation() const {<br>
- return SupportsDebugInformation;<br>
- }<br>
- bool doesSupportExceptionHandling() const {<br>
- return ExceptionsType != ExceptionHandling::None;<br>
- }<br>
- ExceptionHandling::ExceptionsType getExceptionHandlingType() const {<br>
- return ExceptionsType;<br>
- }<br>
- bool isExceptionHandlingDwarf() const {<br>
- return<br>
- (ExceptionsType == ExceptionHandling::DwarfCFI ||<br>
- ExceptionsType == ExceptionHandling::ARM ||<br>
- ExceptionsType == ExceptionHandling::Win64);<br>
- }<br>
- bool doesDwarfUseRelocationsAcrossSections() const {<br>
- return DwarfUsesRelocationsAcrossSections;<br>
- }<br>
- bool doDwarfFDESymbolsUseAbsDiff() const {<br>
- return DwarfFDESymbolsUseAbsDiff;<br>
- }<br>
- bool useDwarfRegNumForCFI() const {<br>
- return DwarfRegNumForCFI;<br>
- }<br>
- bool useParensForSymbolVariant() const {<br>
- return UseParensForSymbolVariant;<br>
- }<br>
-<br>
- void addInitialFrameState(const MCCFIInstruction &Inst) {<br>
- InitialFrameState.push_back(Inst);<br>
- }<br>
-<br>
- const std::vector<MCCFIInstruction> &getInitialFrameState() const {<br>
- return InitialFrameState;<br>
- }<br>
-<br>
- /// Return true if assembly (inline or otherwise) should be parsed.<br>
- bool useIntegratedAssembler() const { return UseIntegratedAssembler; }<br>
-<br>
- /// Set whether assembly (inline or otherwise) should be parsed.<br>
- virtual void setUseIntegratedAssembler(bool Value) {<br>
- UseIntegratedAssembler = Value;<br>
- }<br>
-<br>
- bool compressDebugSections() const { return CompressDebugSections; }<br>
-<br>
- void setCompressDebugSections(bool CompressDebugSections) {<br>
- this->CompressDebugSections = CompressDebugSections;<br>
- }<br>
- };<br>
+class MCExpr;<br>
+class MCSection;<br>
+class MCStreamer;<br>
+class MCSymbol;<br>
+class MCContext;<br>
+<br>
+namespace ExceptionHandling {<br>
+enum ExceptionsType { None, DwarfCFI, SjLj, ARM, Win64 };<br>
+}<br>
+<br>
+namespace LCOMM {<br>
+enum LCOMMType { NoAlignment, ByteAlignment, Log2Alignment };<br>
+}<br>
+<br>
+/// This class is intended to be used as a base class for asm<br>
+/// properties and features specific to the target.<br>
+class MCAsmInfo {<br>
+protected:<br>
+ //===------------------------------------------------------------------===//<br>
+ // Properties to be set by the target writer, used to configure asm printer.<br>
+ //<br>
+<br>
+ /// Pointer size in bytes. Default is 4.<br>
+ unsigned PointerSize;<br>
+<br>
+ /// Size of the stack slot reserved for callee-saved registers, in bytes.<br>
+ /// Default is same as pointer size.<br>
+ unsigned CalleeSaveStackSlotSize;<br>
+<br>
+ /// True if target is little endian. Default is true.<br>
+ bool IsLittleEndian;<br>
+<br>
+ /// True if target stack grow up. Default is false.<br>
+ bool StackGrowsUp;<br>
+<br>
+ /// True if this target has the MachO .subsections_via_symbols directive.<br>
+ /// Default is false.<br>
+ bool HasSubsectionsViaSymbols;<br>
+<br>
+ /// True if this is a MachO target that supports the macho-specific .zerofill<br>
+ /// directive for emitting BSS Symbols. Default is false.<br>
+ bool HasMachoZeroFillDirective;<br>
+<br>
+ /// True if this is a MachO target that supports the macho-specific .tbss<br>
+ /// directive for emitting thread local BSS Symbols. Default is false.<br>
+ bool HasMachoTBSSDirective;<br>
+<br>
+ /// True if the compiler should emit a ".reference .constructors_used" or<br>
+ /// ".reference .destructors_used" directive after the a static ctor/dtor<br>
+ /// list. This directive is only emitted in Static relocation model. Default<br>
+ /// is false.<br>
+ bool HasStaticCtorDtorReferenceInStaticMode;<br>
+<br>
+ /// True if the linker has a bug and requires that the debug_line section be<br>
+ /// of a minimum size. In practice such a linker requires a non-empty line<br>
+ /// sequence if a file is present. Default to false.<br>
+ bool LinkerRequiresNonEmptyDwarfLines;<br>
+<br>
+ /// This is the maximum possible length of an instruction, which is needed to<br>
+ /// compute the size of an inline asm. Defaults to 4.<br>
+ unsigned MaxInstLength;<br>
+<br>
+ /// Every possible instruction length is a multiple of this value. Factored<br>
+ /// out in .debug_frame and .debug_line. Defaults to 1.<br>
+ unsigned MinInstAlignment;<br>
+<br>
+ /// The '$' token, when not referencing an identifier or constant, refers to<br>
+ /// the current PC. Defaults to false.<br>
+ bool DollarIsPC;<br>
+<br>
+ /// This string, if specified, is used to separate instructions from each<br>
+ /// other when on the same line. Defaults to ';'<br>
+ const char *SeparatorString;<br>
+<br>
+ /// This indicates the comment character used by the assembler. Defaults to<br>
+ /// "#"<br>
+ const char *CommentString;<br>
+<br>
+ /// This is appended to emitted labels. Defaults to ":"<br>
+ const char *LabelSuffix;<br>
+<br>
+ /// This is appended to emitted labels. Defaults to ":"<br>
+ const char *DebugLabelSuffix;<br>
+<br>
+ /// This prefix is used for globals like constant pool entries that are<br>
+ /// completely private to the .s file and should not have names in the .o<br>
+ /// file. Defaults to "L"<br>
+ const char *PrivateGlobalPrefix;<br>
+<br>
+ /// This prefix is used for symbols that should be passed through the<br>
+ /// assembler but be removed by the linker. This is 'l' on Darwin, currently<br>
+ /// used for some ObjC metadata. The default of "" meast that for this system<br>
+ /// a plain private symbol should be used. Defaults to "".<br>
+ const char *LinkerPrivateGlobalPrefix;<br>
+<br>
+ /// If these are nonempty, they contain a directive to emit before and after<br>
+ /// an inline assembly statement. Defaults to "#APP\n", "#NO_APP\n"<br>
+ const char *InlineAsmStart;<br>
+ const char *InlineAsmEnd;<br>
+<br>
+ /// These are assembly directives that tells the assembler to interpret the<br>
+ /// following instructions differently. Defaults to ".code16", ".code32",<br>
+ /// ".code64".<br>
+ const char *Code16Directive;<br>
+ const char *Code32Directive;<br>
+ const char *Code64Directive;<br>
+<br>
+ /// Which dialect of an assembler variant to use. Defaults to 0<br>
+ unsigned AssemblerDialect;<br>
+<br>
+ /// This is true if the assembler allows @ characters in symbol names.<br>
+ /// Defaults to false.<br>
+ bool AllowAtInName;<br>
+<br>
+ /// This is true if data region markers should be printed as<br>
+ /// ".data_region/.end_data_region" directives. If false, use "$d/$a" labels<br>
+ /// instead.<br>
+ bool UseDataRegionDirectives;<br>
+<br>
+ //===--- Data Emission Directives -------------------------------------===//<br>
+<br>
+ /// This should be set to the directive used to get some number of zero bytes<br>
+ /// emitted to the current section. Common cases are "\t.zero\t" and<br>
+ /// "\t.space\t". If this is set to null, the Data*bitsDirective's will be<br>
+ /// used to emit zero bytes. Defaults to "\t.zero\t"<br>
+ const char *ZeroDirective;<br>
+<br>
+ /// This directive allows emission of an ascii string with the standard C<br>
+ /// escape characters embedded into it. Defaults to "\t.ascii\t"<br>
+ const char *AsciiDirective;<br>
+<br>
+ /// If not null, this allows for special handling of zero terminated strings<br>
+ /// on this target. This is commonly supported as ".asciz". If a target<br>
+ /// doesn't support this, it can be set to null. Defaults to "\t.asciz\t"<br>
+ const char *AscizDirective;<br>
+<br>
+ /// These directives are used to output some unit of integer data to the<br>
+ /// current section. If a data directive is set to null, smaller data<br>
+ /// directives will be used to emit the large sizes. Defaults to "\t.byte\t",<br>
+ /// "\t.short\t", "\t.long\t", "\t.quad\t"<br>
+ const char *Data8bitsDirective;<br>
+ const char *Data16bitsDirective;<br>
+ const char *Data32bitsDirective;<br>
+ const char *Data64bitsDirective;<br>
+<br>
+ /// If non-null, a directive that is used to emit a word which should be<br>
+ /// relocated as a 64-bit GP-relative offset, e.g. .gpdword on Mips. Defaults<br>
+ /// to NULL.<br>
+ const char *GPRel64Directive;<br>
+<br>
+ /// If non-null, a directive that is used to emit a word which should be<br>
+ /// relocated as a 32-bit GP-relative offset, e.g. .gpword on Mips or .gprel32<br>
+ /// on Alpha. Defaults to NULL.<br>
+ const char *GPRel32Directive;<br>
+<br>
+ /// This is true if this target uses "Sun Style" syntax for section switching<br>
+ /// ("#alloc,#write" etc) instead of the normal ELF syntax (,"a,w") in<br>
+ /// .section directives. Defaults to false.<br>
+ bool SunStyleELFSectionSwitchSyntax;<br>
+<br>
+ /// This is true if this target uses ELF '.section' directive before the<br>
+ /// '.bss' one. It's used for PPC/Linux which doesn't support the '.bss'<br>
+ /// directive only. Defaults to false.<br>
+ bool UsesELFSectionDirectiveForBSS;<br>
+<br>
+ bool NeedsDwarfSectionOffsetDirective;<br>
+<br>
+ //===--- Alignment Information ----------------------------------------===//<br>
+<br>
+ /// If this is true (the default) then the asmprinter emits ".align N"<br>
+ /// directives, where N is the number of bytes to align to. Otherwise, it<br>
+ /// emits ".align log2(N)", e.g. 3 to align to an 8 byte boundary. Defaults<br>
+ /// to true.<br>
+ bool AlignmentIsInBytes;<br>
+<br>
+ /// If non-zero, this is used to fill the executable space created as the<br>
+ /// result of a alignment directive. Defaults to 0<br>
+ unsigned TextAlignFillValue;<br>
+<br>
+ //===--- Global Variable Emission Directives --------------------------===//<br>
+<br>
+ /// This is the directive used to declare a global entity. Defaults to NULL.<br>
+ const char *GlobalDirective;<br>
+<br>
+ /// True if the assembler supports the .set directive. Defaults to true.<br>
+ bool HasSetDirective;<br>
+<br>
+ /// False if the assembler requires that we use<br>
+ /// \code<br>
+ /// Lc = a - b<br>
+ /// .long Lc<br>
+ /// \endcode<br>
+ //<br>
+ /// instead of<br>
+ //<br>
+ /// \code<br>
+ /// .long a - b<br>
+ /// \endcode<br>
+ ///<br>
+ /// Defaults to true.<br>
+ bool HasAggressiveSymbolFolding;<br>
+<br>
+ /// True is .comm's and .lcomms optional alignment is to be specified in bytes<br>
+ /// instead of log2(n). Defaults to true.<br>
+ bool COMMDirectiveAlignmentIsInBytes;<br>
+<br>
+ /// Describes if the .lcomm directive for the target supports an alignment<br>
+ /// argument and how it is interpreted. Defaults to NoAlignment.<br>
+ LCOMM::LCOMMType LCOMMDirectiveAlignmentType;<br>
+<br>
+ /// True if the target has .type and .size directives, this is true for most<br>
+ /// ELF targets. Defaults to true.<br>
+ bool HasDotTypeDotSizeDirective;<br>
+<br>
+ /// True if the target has a single parameter .file directive, this is true<br>
+ /// for ELF targets. Defaults to true.<br>
+ bool HasSingleParameterDotFile;<br>
+<br>
+ /// True if the target has a .ident directive, this is true for ELF targets.<br>
+ /// Defaults to false.<br>
+ bool HasIdentDirective;<br>
+<br>
+ /// True if this target supports the MachO .no_dead_strip directive. Defaults<br>
+ /// to false.<br>
+ bool HasNoDeadStrip;<br>
+<br>
+ /// This directive, if non-null, is used to declare a global as being a weak<br>
+ /// undefined symbol. Defaults to NULL.<br>
+ const char *WeakRefDirective;<br>
+<br>
+ /// True if we have a directive to declare a global as being a weak defined<br>
+ /// symbol. Defaults to false.<br>
+ bool HasWeakDefDirective;<br>
+<br>
+ /// True if we have a directive to declare a global as being a weak defined<br>
+ /// symbol that can be hidden (unexported). Defaults to false.<br>
+ bool HasWeakDefCanBeHiddenDirective;<br>
+<br>
+ /// True if we have a .linkonce directive. This is used on cygwin/mingw.<br>
+ /// Defaults to false.<br>
+ bool HasLinkOnceDirective;<br>
+<br>
+ /// This attribute, if not MCSA_Invalid, is used to declare a symbol as having<br>
+ /// hidden visibility. Defaults to MCSA_Hidden.<br>
+ MCSymbolAttr HiddenVisibilityAttr;<br>
+<br>
+ /// This attribute, if not MCSA_Invalid, is used to declare an undefined<br>
+ /// symbol as having hidden visibility. Defaults to MCSA_Hidden.<br>
+ MCSymbolAttr HiddenDeclarationVisibilityAttr;<br>
+<br>
+ /// This attribute, if not MCSA_Invalid, is used to declare a symbol as having<br>
+ /// protected visibility. Defaults to MCSA_Protected<br>
+ MCSymbolAttr ProtectedVisibilityAttr;<br>
+<br>
+ //===--- Dwarf Emission Directives -----------------------------------===//<br>
+<br>
+ /// True if target asm supports leb128 directives. Defaults to false.<br>
+ bool HasLEB128;<br>
+<br>
+ /// True if target supports emission of debugging information. Defaults to<br>
+ /// false.<br>
+ bool SupportsDebugInformation;<br>
+<br>
+ /// True if target supports exception handling. Defaults to None<br>
+ ExceptionHandling::ExceptionsType ExceptionsType;<br>
+<br>
+ /// True if Dwarf2 output generally uses relocations for references to other<br>
+ /// .debug_* sections.<br>
+ bool DwarfUsesRelocationsAcrossSections;<br>
+<br>
+ /// True if DWARF FDE symbol reference relocations should be replaced by an<br>
+ /// absolute difference.<br>
+ bool DwarfFDESymbolsUseAbsDiff;<br>
+<br>
+ /// True if dwarf register numbers are printed instead of symbolic register<br>
+ /// names in .cfi_* directives. Defaults to false.<br>
+ bool DwarfRegNumForCFI;<br>
+<br>
+ /// True if target uses parens to indicate the symbol variant instead of @.<br>
+ /// For example, foo(plt) instead of foo@plt. Defaults to false.<br>
+ bool UseParensForSymbolVariant;<br>
+<br>
+ //===--- Prologue State ----------------------------------------------===//<br>
+<br>
+ std::vector<MCCFIInstruction> InitialFrameState;<br>
+<br>
+ //===--- Integrated Assembler State ----------------------------------===//<br>
+<br>
+ /// Should we use the integrated assembler?<br>
+ /// The integrated assembler should be enabled by default (by the<br>
+ /// constructors) when failing to parse a valid piece of assembly (inline<br>
+ /// or otherwise) is considered a bug. It may then be overridden after<br>
+ /// construction (see LLVMTargetMachine::initAsmInfo()).<br>
+ bool UseIntegratedAssembler;<br>
+<br>
+ /// Compress DWARF debug sections. Defaults to false.<br>
+ bool CompressDebugSections;<br>
+<br>
+public:<br>
+ explicit MCAsmInfo();<br>
+ virtual ~MCAsmInfo();<br>
+<br>
+ /// Get the pointer size in bytes.<br>
+ unsigned getPointerSize() const { return PointerSize; }<br>
+<br>
+ /// Get the callee-saved register stack slot<br>
+ /// size in bytes.<br>
+ unsigned getCalleeSaveStackSlotSize() const {<br>
+ return CalleeSaveStackSlotSize;<br>
+ }<br>
+<br>
+ /// True if the target is little endian.<br>
+ bool isLittleEndian() const { return IsLittleEndian; }<br>
+<br>
+ /// True if target stack grow up.<br>
+ bool isStackGrowthDirectionUp() const { return StackGrowsUp; }<br>
+<br>
+ bool hasSubsectionsViaSymbols() const { return HasSubsectionsViaSymbols; }<br>
+<br>
+ // Data directive accessors.<br>
+<br>
+ const char *getData8bitsDirective() const { return Data8bitsDirective; }<br>
+ const char *getData16bitsDirective() const { return Data16bitsDirective; }<br>
+ const char *getData32bitsDirective() const { return Data32bitsDirective; }<br>
+ const char *getData64bitsDirective() const { return Data64bitsDirective; }<br>
+ const char *getGPRel64Directive() const { return GPRel64Directive; }<br>
+ const char *getGPRel32Directive() const { return GPRel32Directive; }<br>
+<br>
+ /// Targets can implement this method to specify a section to switch to if the<br>
+ /// translation unit doesn't have any trampolines that require an executable<br>
+ /// stack.<br>
+ virtual const MCSection *getNonexecutableStackSection(MCContext &Ctx) const {<br>
+ return nullptr;<br>
+ }<br>
+<br>
+ virtual const MCExpr *getExprForPersonalitySymbol(const MCSymbol *Sym,<br>
+ unsigned Encoding,<br>
+ MCStreamer &Streamer) const;<br>
+<br>
+ virtual const MCExpr *getExprForFDESymbol(const MCSymbol *Sym,<br>
+ unsigned Encoding,<br>
+ MCStreamer &Streamer) const;<br>
+<br>
+ bool usesSunStyleELFSectionSwitchSyntax() const {<br>
+ return SunStyleELFSectionSwitchSyntax;<br>
+ }<br>
+<br>
+ bool usesELFSectionDirectiveForBSS() const {<br>
+ return UsesELFSectionDirectiveForBSS;<br>
+ }<br>
+<br>
+ bool needsDwarfSectionOffsetDirective() const {<br>
+ return NeedsDwarfSectionOffsetDirective;<br>
+ }<br>
+<br>
+ // Accessors.<br>
+<br>
+ bool hasMachoZeroFillDirective() const { return HasMachoZeroFillDirective; }<br>
+ bool hasMachoTBSSDirective() const { return HasMachoTBSSDirective; }<br>
+ bool hasStaticCtorDtorReferenceInStaticMode() const {<br>
+ return HasStaticCtorDtorReferenceInStaticMode;<br>
+ }<br>
+ bool getLinkerRequiresNonEmptyDwarfLines() const {<br>
+ return LinkerRequiresNonEmptyDwarfLines;<br>
+ }<br>
+ unsigned getMaxInstLength() const { return MaxInstLength; }<br>
+ unsigned getMinInstAlignment() const { return MinInstAlignment; }<br>
+ bool getDollarIsPC() const { return DollarIsPC; }<br>
+ const char *getSeparatorString() const { return SeparatorString; }<br>
+<br>
+ /// This indicates the column (zero-based) at which asm comments should be<br>
+ /// printed.<br>
+ unsigned getCommentColumn() const { return 40; }<br>
+<br>
+ const char *getCommentString() const { return CommentString; }<br>
+ const char *getLabelSuffix() const { return LabelSuffix; }<br>
+<br>
+ const char *getDebugLabelSuffix() const { return DebugLabelSuffix; }<br>
+ const char *getPrivateGlobalPrefix() const { return PrivateGlobalPrefix; }<br>
+ bool hasLinkerPrivateGlobalPrefix() const {<br>
+ return LinkerPrivateGlobalPrefix[0] != '\0';<br>
+ }<br>
+ const char *getLinkerPrivateGlobalPrefix() const {<br>
+ if (hasLinkerPrivateGlobalPrefix())<br>
+ return LinkerPrivateGlobalPrefix;<br>
+ return getPrivateGlobalPrefix();<br>
+ }<br>
+ const char *getInlineAsmStart() const { return InlineAsmStart; }<br>
+ const char *getInlineAsmEnd() const { return InlineAsmEnd; }<br>
+ const char *getCode16Directive() const { return Code16Directive; }<br>
+ const char *getCode32Directive() const { return Code32Directive; }<br>
+ const char *getCode64Directive() const { return Code64Directive; }<br>
+ unsigned getAssemblerDialect() const { return AssemblerDialect; }<br>
+ bool doesAllowAtInName() const { return AllowAtInName; }<br>
+ bool doesSupportDataRegionDirectives() const {<br>
+ return UseDataRegionDirectives;<br>
+ }<br>
+ const char *getZeroDirective() const { return ZeroDirective; }<br>
+ const char *getAsciiDirective() const { return AsciiDirective; }<br>
+ const char *getAscizDirective() const { return AscizDirective; }<br>
+ bool getAlignmentIsInBytes() const { return AlignmentIsInBytes; }<br>
+ unsigned getTextAlignFillValue() const { return TextAlignFillValue; }<br>
+ const char *getGlobalDirective() const { return GlobalDirective; }<br>
+ bool hasSetDirective() const { return HasSetDirective; }<br>
+ bool hasAggressiveSymbolFolding() const { return HasAggressiveSymbolFolding; }<br>
+ bool getCOMMDirectiveAlignmentIsInBytes() const {<br>
+ return COMMDirectiveAlignmentIsInBytes;<br>
+ }<br>
+ LCOMM::LCOMMType getLCOMMDirectiveAlignmentType() const {<br>
+ return LCOMMDirectiveAlignmentType;<br>
+ }<br>
+ bool hasDotTypeDotSizeDirective() const { return HasDotTypeDotSizeDirective; }<br>
+ bool hasSingleParameterDotFile() const { return HasSingleParameterDotFile; }<br>
+ bool hasIdentDirective() const { return HasIdentDirective; }<br>
+ bool hasNoDeadStrip() const { return HasNoDeadStrip; }<br>
+ const char *getWeakRefDirective() const { return WeakRefDirective; }<br>
+ bool hasWeakDefDirective() const { return HasWeakDefDirective; }<br>
+ bool hasWeakDefCanBeHiddenDirective() const {<br>
+ return HasWeakDefCanBeHiddenDirective;<br>
+ }<br>
+ bool hasLinkOnceDirective() const { return HasLinkOnceDirective; }<br>
+<br>
+ MCSymbolAttr getHiddenVisibilityAttr() const { return HiddenVisibilityAttr; }<br>
+ MCSymbolAttr getHiddenDeclarationVisibilityAttr() const {<br>
+ return HiddenDeclarationVisibilityAttr;<br>
+ }<br>
+ MCSymbolAttr getProtectedVisibilityAttr() const {<br>
+ return ProtectedVisibilityAttr;<br>
+ }<br>
+ bool hasLEB128() const { return HasLEB128; }<br>
+ bool doesSupportDebugInformation() const { return SupportsDebugInformation; }<br>
+ bool doesSupportExceptionHandling() const {<br>
+ return ExceptionsType != ExceptionHandling::None;<br>
+ }<br>
+ ExceptionHandling::ExceptionsType getExceptionHandlingType() const {<br>
+ return ExceptionsType;<br>
+ }<br>
+ bool isExceptionHandlingDwarf() const {<br>
+ return (ExceptionsType == ExceptionHandling::DwarfCFI ||<br>
+ ExceptionsType == ExceptionHandling::ARM ||<br>
+ ExceptionsType == ExceptionHandling::Win64);<br>
+ }<br>
+ bool doesDwarfUseRelocationsAcrossSections() const {<br>
+ return DwarfUsesRelocationsAcrossSections;<br>
+ }<br>
+ bool doDwarfFDESymbolsUseAbsDiff() const { return DwarfFDESymbolsUseAbsDiff; }<br>
+ bool useDwarfRegNumForCFI() const { return DwarfRegNumForCFI; }<br>
+ bool useParensForSymbolVariant() const { return UseParensForSymbolVariant; }<br>
+<br>
+ void addInitialFrameState(const MCCFIInstruction &Inst) {<br>
+ InitialFrameState.push_back(Inst);<br>
+ }<br>
+<br>
+ const std::vector<MCCFIInstruction> &getInitialFrameState() const {<br>
+ return InitialFrameState;<br>
+ }<br>
+<br>
+ /// Return true if assembly (inline or otherwise) should be parsed.<br>
+ bool useIntegratedAssembler() const { return UseIntegratedAssembler; }<br>
+<br>
+ /// Set whether assembly (inline or otherwise) should be parsed.<br>
+ virtual void setUseIntegratedAssembler(bool Value) {<br>
+ UseIntegratedAssembler = Value;<br>
+ }<br>
+<br>
+ bool compressDebugSections() const { return CompressDebugSections; }<br>
+<br>
+ void setCompressDebugSections(bool CompressDebugSections) {<br>
+ this->CompressDebugSections = CompressDebugSections;<br>
+ }<br>
+};<br>
}<br>
<br>
#endif<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>