diff --git a/include/llvm/MC/MCSectionCOFF.h b/include/llvm/MC/MCSectionCOFF.h index 62d07cf4368..8bf7f448ec5 100644 --- a/include/llvm/MC/MCSectionCOFF.h +++ b/include/llvm/MC/MCSectionCOFF.h @@ -19,12 +19,12 @@ #include "llvm/Support/COFF.h" namespace llvm { - + /// MCSectionCOFF - This represents a section on Windows class MCSectionCOFF : public MCSection { // The memory for this string is stored in the same MCContext as *this. StringRef SectionName; - + /// Characteristics - This is the Characteristics field of a section, // drawn from the enums below. unsigned Characteristics; @@ -52,7 +52,7 @@ namespace llvm { StringRef getSectionName() const { return SectionName; } unsigned getCharacteristics() const { return Characteristics; } int getSelection () const { return Selection; } - + virtual void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS) const; virtual bool UseCodeAlign() const; diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index a92d0f2c950..fdccdfdc66e 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/include/llvm/MC/MCSectionELF.h @@ -17,17 +17,17 @@ #include "llvm/MC/MCSection.h" namespace llvm { - + /// MCSectionELF - This represents a section on linux, lots of unix variants /// and some bare metal systems. class MCSectionELF : public MCSection { /// SectionName - This is the name of the section. The referenced memory is /// owned by TargetLoweringObjectFileELF's ELFUniqueMap. StringRef SectionName; - + /// Type - This is the sh_type field of a section, drawn from the enums below. unsigned Type; - + /// Flags - This is the sh_flags field of a section, drawn from the enums. /// below. unsigned Flags; @@ -40,7 +40,7 @@ class MCSectionELF : public MCSection { /// makes sense for sections that contain fixed-sized entries. If a /// section does not contain fixed-sized entries 'EntrySize' will be 0. unsigned EntrySize; - + private: friend class MCContext; MCSectionELF(StringRef Section, unsigned type, unsigned flags, @@ -58,10 +58,10 @@ public: bool ShouldPrintSectionType(unsigned Ty) const; /// HasCommonSymbols - True if this section holds common symbols, this is - /// indicated on the ELF object file by a symbol with SHN_COMMON section + /// indicated on the ELF object file by a symbol with SHN_COMMON section /// header index. bool HasCommonSymbols() const; - + /// These are the section type and flags fields. An ELF section can have /// only one Type, but can have more than one of the flags specified. /// @@ -84,7 +84,7 @@ public: // The section holds a symbol hash table. SHT_HASH = 0x05U, - + // Information for dynamic linking. SHT_DYNAMIC = 0x06U, @@ -97,7 +97,7 @@ public: // The section holds relocation entries without explicit addends. SHT_REL = 0x09U, - // This section type is reserved but has unspecified semantics. + // This section type is reserved but has unspecified semantics. SHT_SHLIB = 0x0AU, // This section holds a symbol table. @@ -122,7 +122,7 @@ public: SHT_SYMTAB_SHNDX = 0x12U, LAST_KNOWN_SECTION_TYPE = SHT_SYMTAB_SHNDX - }; + }; /// Valid section flags. enum { @@ -157,14 +157,14 @@ public: // This section holds Thread-Local Storage. SHF_TLS = 0x400U, - + // Start of target-specific flags. /// XCORE_SHF_CP_SECTION - All sections with the "c" flag are grouped /// together by the linker to form the constant pool and the cp register is /// set to the start of the constant pool by the boot code. XCORE_SHF_CP_SECTION = 0x800U, - + /// XCORE_SHF_DP_SECTION - All sections with the "d" flag are grouped /// together by the linker to form the data section and the dp register is /// set to the start of the section by the boot code. @@ -175,7 +175,7 @@ public: unsigned getType() const { return Type; } unsigned getFlags() const { return Flags; } unsigned getEntrySize() const { return EntrySize; } - + void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS) const; virtual bool UseCodeAlign() const; diff --git a/include/llvm/MC/MCSectionMachO.h b/include/llvm/MC/MCSectionMachO.h index 19d003a3b5a..f409f3253b8 100644 --- a/include/llvm/MC/MCSectionMachO.h +++ b/include/llvm/MC/MCSectionMachO.h @@ -17,36 +17,36 @@ #include "llvm/MC/MCSection.h" namespace llvm { - + /// MCSectionMachO - This represents a section on a Mach-O system (used by /// Mac OS X). On a Mac system, these are also described in /// /usr/include/mach-o/loader.h. class MCSectionMachO : public MCSection { char SegmentName[16]; // Not necessarily null terminated! char SectionName[16]; // Not necessarily null terminated! - + /// TypeAndAttributes - This is the SECTION_TYPE and SECTION_ATTRIBUTES /// field of a section, drawn from the enums below. unsigned TypeAndAttributes; - + /// Reserved2 - The 'reserved2' field of a section, used to represent the /// size of stubs, for example. unsigned Reserved2; - + MCSectionMachO(StringRef Segment, StringRef Section, - unsigned TAA, unsigned reserved2, SectionKind K); + unsigned TAA, unsigned reserved2, SectionKind K); friend class MCContext; public: - + /// These are the section type and attributes fields. A MachO section can /// have only one Type, but can have any of the attributes specified. enum { // TypeAndAttributes bitmasks. SECTION_TYPE = 0x000000FFU, SECTION_ATTRIBUTES = 0xFFFFFF00U, - + // Valid section types. - + /// S_REGULAR - Regular section. S_REGULAR = 0x00U, /// S_ZEROFILL - Zero fill on demand section. @@ -101,10 +101,10 @@ public: S_THREAD_LOCAL_INIT_FUNCTION_POINTERS = 0x15U, LAST_KNOWN_SECTION_TYPE = S_THREAD_LOCAL_INIT_FUNCTION_POINTERS, - + // Valid section attributes. - + /// S_ATTR_PURE_INSTRUCTIONS - Section contains only true machine /// instructions. S_ATTR_PURE_INSTRUCTIONS = 1U << 31,