Lines Matching refs:MCSectionMachO
1 //===- lib/MC/MCSectionMachO.cpp - MachO Code Section Representation ------===//
10 #include "llvm/MC/MCSectionMachO.h"
21 } SectionTypeDescriptors[MCSectionMachO::LAST_KNOWN_SECTION_TYPE+1] = {
58 { MCSectionMachO::ENUM, ASMNAME, #ENUM },
75 MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section,
93 void MCSectionMachO::PrintSwitchToSection(const MCAsmInfo &MAI,
105 unsigned SectionType = TAA & MCSectionMachO::SECTION_TYPE;
106 assert(SectionType <= MCSectionMachO::LAST_KNOWN_SECTION_TYPE &&
119 unsigned SectionAttrs = TAA & MCSectionMachO::SECTION_ATTRIBUTES;
157 bool MCSectionMachO::UseCodeAlign() const {
158 return hasAttribute(MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS);
161 bool MCSectionMachO::isVirtualSection() const {
162 return (getType() == MCSectionMachO::S_ZEROFILL ||
163 getType() == MCSectionMachO::S_GB_ZEROFILL ||
164 getType() == MCSectionMachO::S_THREAD_LOCAL_ZEROFILL);
180 std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec, // In.
231 for (TypeID = 0; TypeID !=MCSectionMachO::LAST_KNOWN_SECTION_TYPE+1; ++TypeID)
237 if (TypeID > MCSectionMachO::LAST_KNOWN_SECTION_TYPE)
247 if (TAA == MCSectionMachO::S_SYMBOL_STUBS)
284 if (TAA == MCSectionMachO::S_SYMBOL_STUBS)
291 if ((TAA & MCSectionMachO::SECTION_TYPE) != MCSectionMachO::S_SYMBOL_STUBS)