<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>