diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-15 21:56:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-15 21:56:38 +0000 |
commit | 99d22adcadc750b2949283d562bdb4d480b8d11c (patch) | |
tree | 33a0e21d29d3675eef4450830e8b75df07681f87 /include/llvm/MC/MCSectionMachO.h | |
parent | 689fac02268929b756086753b4656d6dabc5cf2d (diff) | |
download | external_llvm-99d22adcadc750b2949283d562bdb4d480b8d11c.tar.gz external_llvm-99d22adcadc750b2949283d562bdb4d480b8d11c.tar.bz2 external_llvm-99d22adcadc750b2949283d562bdb4d480b8d11c.zip |
MC/Mach-O: Add MCSectionMachO::getType()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionMachO.h')
-rw-r--r-- | include/llvm/MC/MCSectionMachO.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/MC/MCSectionMachO.h b/include/llvm/MC/MCSectionMachO.h index 61568194d7..5839c281ed 100644 --- a/include/llvm/MC/MCSectionMachO.h +++ b/include/llvm/MC/MCSectionMachO.h @@ -151,10 +151,12 @@ public: return StringRef(SectionName, 16); return StringRef(SectionName); } - + unsigned getTypeAndAttributes() const { return TypeAndAttributes; } unsigned getStubSize() const { return Reserved2; } - + + unsigned getType() const { return TypeAndAttributes & SECTION_TYPE; } + /// ParseSectionSpecifier - Parse the section specifier indicated by "Spec". /// This is a string that can appear after a .section directive in a mach-o /// flavored .s file. If successful, this fills in the specified Out @@ -165,7 +167,7 @@ public: StringRef &Section, // Out. unsigned &TAA, // Out. unsigned &StubSize); // Out. - + virtual void PrintSwitchToSection(const MCAsmInfo &MAI, raw_ostream &OS) const; }; |