Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lib/MC/MCContext.cpp
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Lines | auto IterBool = ELFUniquingMap.insert( | ||||
std::make_pair(ELFSectionKey{Section.str(), Group, UniqueID}, nullptr)); | std::make_pair(ELFSectionKey{Section.str(), Group, UniqueID}, nullptr)); | ||||
auto &Entry = *IterBool.first; | auto &Entry = *IterBool.first; | ||||
if (!IterBool.second) | if (!IterBool.second) | ||||
return Entry.second; | return Entry.second; | ||||
StringRef CachedName = Entry.first.SectionName; | StringRef CachedName = Entry.first.SectionName; | ||||
SectionKind Kind; | SectionKind Kind; | ||||
if (Flags & ELF::SHF_EXECINSTR) | if (Flags & ELF::SHF_ARM_PURECODE) | ||||
Kind = SectionKind::getExecuteOnly(); | |||||
else if (Flags & ELF::SHF_EXECINSTR) | |||||
Kind = SectionKind::getText(); | Kind = SectionKind::getText(); | ||||
else | else | ||||
Kind = SectionKind::getReadOnly(); | Kind = SectionKind::getReadOnly(); | ||||
MCSymbol *Begin = nullptr; | MCSymbol *Begin = nullptr; | ||||
if (BeginSymName) | if (BeginSymName) | ||||
Begin = createTempSymbol(BeginSymName, false); | Begin = createTempSymbol(BeginSymName, false); | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |