Home
last modified time | relevance | path

Searched refs:SectionFlag (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp98 static uint32_t flagsToCharacteristics(SectionFlag AllFlags, uint32_t OldChar) { in flagsToCharacteristics()
113 if ((AllFlags & SectionFlag::SecAlloc) && !(AllFlags & SectionFlag::SecLoad)) in flagsToCharacteristics()
115 if (AllFlags & SectionFlag::SecNoload) in flagsToCharacteristics()
117 if (!(AllFlags & SectionFlag::SecReadonly)) in flagsToCharacteristics()
119 if (AllFlags & SectionFlag::SecDebug) in flagsToCharacteristics()
122 if (AllFlags & SectionFlag::SecCode) in flagsToCharacteristics()
124 if (AllFlags & SectionFlag::SecData) in flagsToCharacteristics()
126 if (AllFlags & SectionFlag::SecShare) in flagsToCharacteristics()
128 if (AllFlags & SectionFlag::SecExclude) in flagsToCharacteristics()
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStubV5.cpp333 SymbolFlags SectionFlag) { in collectSymbolsFromSegment() argument
335 TBDKey::Globals, Segment, [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment()
336 JSONSymbol Sym = {EncodeKind::GlobalSymbol, Name.str(), SectionFlag}; in collectSymbolsFromSegment()
343 TBDKey::ObjCClass, Segment, [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment()
344 JSONSymbol Sym = {EncodeKind::ObjectiveCClass, Name.str(), SectionFlag}; in collectSymbolsFromSegment()
351 [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment()
353 Name.str(), SectionFlag}; in collectSymbolsFromSegment()
360 TBDKey::ObjCIvar, Segment, [&Result, &SectionFlag](StringRef Name) { in collectSymbolsFromSegment()
362 SectionFlag}; in collectSymbolsFromSegment()
369 SectionFlag | in collectSymbolsFromSegment()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A DObjcopyOptions.cpp169 static SectionFlag parseSectionRenameFlag(StringRef SectionName) { in parseSectionRenameFlag()
170 return llvm::StringSwitch<SectionFlag>(SectionName) in parseSectionRenameFlag()
171 .CaseLower("alloc", SectionFlag::SecAlloc) in parseSectionRenameFlag()
172 .CaseLower("load", SectionFlag::SecLoad) in parseSectionRenameFlag()
173 .CaseLower("noload", SectionFlag::SecNoload) in parseSectionRenameFlag()
174 .CaseLower("readonly", SectionFlag::SecReadonly) in parseSectionRenameFlag()
175 .CaseLower("debug", SectionFlag::SecDebug) in parseSectionRenameFlag()
176 .CaseLower("code", SectionFlag::SecCode) in parseSectionRenameFlag()
177 .CaseLower("data", SectionFlag::SecData) in parseSectionRenameFlag()
178 .CaseLower("rom", SectionFlag::SecRom) in parseSectionRenameFlag()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjCopy/
H A DCommonConfig.h51 enum SectionFlag { enum
73 std::optional<SectionFlag> NewFlags;
78 SectionFlag NewFlags;
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp66 static Expected<uint64_t> getNewShfFlags(SectionFlag AllFlags, in getNewShfFlags()
69 if (AllFlags & SectionFlag::SecAlloc) in getNewShfFlags()
71 if (!(AllFlags & SectionFlag::SecReadonly)) in getNewShfFlags()
73 if (AllFlags & SectionFlag::SecCode) in getNewShfFlags()
75 if (AllFlags & SectionFlag::SecMerge) in getNewShfFlags()
77 if (AllFlags & SectionFlag::SecStrings) in getNewShfFlags()
79 if (AllFlags & SectionFlag::SecExclude) in getNewShfFlags()
81 if (AllFlags & SectionFlag::SecLarge) { in getNewShfFlags()
113 static Error setSectionFlagsAndType(SectionBase &Sec, SectionFlag Flags, in setSectionFlagsAndType()
125 Flags & (SectionFlag::SecContents | SectionFlag::SecLoad))) in setSectionFlagsAndType()