| /src/external/apache2/llvm/dist/llvm/lib/Target/Mips/MCTargetDesc/ |
| MipsOptionRecord.cpp | 36 MCSectionELF *Sec = 39 MCA.registerSection(*Sec); 40 Sec->setAlignment(Align(8)); 41 Streamer->SwitchSection(Sec); 55 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, 57 MCA.registerSection(*Sec); 58 Sec->setAlignment(MTS->getABI().IsN32() ? Align(8) : Align(4)); 59 Streamer->SwitchSection(Sec);
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/JITLink/ |
| DefineExternalSectionStartAndEndSymbols.h | 28 SectionRangeSymbolDesc(Section &Sec, bool IsStart) 29 : Sec(&Sec), IsStart(IsStart) {} 30 Section *Sec = nullptr; 51 if (D.Sec) { 52 auto &SR = getSectionRange(*D.Sec); 73 SectionRange &getSectionRange(Section &Sec) { 74 auto I = SectionRanges.find(&Sec); 76 I = SectionRanges.insert(std::make_pair(&Sec, SectionRange(Sec))).first [all...] |
| JITLink.cpp | 254 for (auto &Sec : sections()) { 255 OS << "section " << Sec.getName() << ":\n\n"; 258 llvm::copy(Sec.blocks(), std::back_inserter(SortedBlocks)); 363 Section &Sec = B.getSection(); 364 ErrStream << "In graph " << G.getName() << ", section " << Sec.getName() 373 for (auto *Sym : Sec.symbols())
|
| /src/external/apache2/llvm/dist/llvm/tools/llvm-dwp/ |
| DWPStringPool.h | 34 MCSection *Sec; 39 DWPStringPool(MCStreamer &Out, MCSection *Sec) : Out(Out), Sec(Sec) {} 46 Out.SwitchSection(Sec);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/MCTargetDesc/ |
| AArch64MachObjectWriter.cpp | 317 const MCSection &Sec = Symbol->getSection(); 318 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec)) 356 const MCSection &Sec = Symbol->getSection(); 357 Index = Sec.getOrdinal() + 1;
|
| /src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/COFF/ |
| COFFObjcopy.cpp | 30 static bool isDebugSection(const Section &Sec) { 31 return Sec.Name.startswith(".debug"); 65 Section Sec; 66 Sec.setOwnedContents(Contents); 67 Sec.Name = Name; 68 Sec.Header.VirtualSize = NeedVA ? Sec.getContents().size() : 0u; 69 Sec.Header.VirtualAddress = NeedVA ? getNextRVA(Obj) : 0u; 70 Sec.Header.SizeOfRawData = 71 NeedVA ? alignTo(Sec.Header.VirtualSize [all...] |
| Reader.cpp | 63 const coff_section *Sec = *SecOrErr; 66 S.Header = *Sec; 69 if (Error E = COFFObj.getSectionContents(Sec, Contents)) 72 ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec); 75 if (Expected<StringRef> NameOrErr = COFFObj.getSectionName(Sec)) 178 for (Section &Sec : Obj.getMutableSections()) { 179 for (Relocation &R : Sec.Relocs) {
|
| Writer.cpp | 28 for (Section &Sec : Obj.getMutableSections()) { 29 for (Relocation &R : Sec.Relocs) { 48 const Section *Sec = Obj.findSection(Sym.TargetSectionId); 49 if (Sec == nullptr) 53 Sym.Sym.SectionNumber = Sec->Index; 64 SDSectionNumber = Sec->Index; 66 Sec = Obj.findSection(Sym.AssociativeComdatTargetSectionId); 67 if (Sec == nullptr) 72 SDSectionNumber = Sec->Index;
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/ARM/MCTargetDesc/ |
| ARMMachObjectWriter.cpp | 458 const MCSection &Sec = A->getSection(); 459 Index = Sec.getOrdinal() + 1; 460 FixedValue += Writer->getSectionAddress(&Sec);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/X86/MCTargetDesc/ |
| X86MachObjectWriter.cpp | 219 const MCSection &Sec = Symbol->getSection(); 220 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec)) 581 const MCSection &Sec = A->getSection(); 582 Index = Sec.getOrdinal() + 1; 583 FixedValue += Writer->getSectionAddress(&Sec);
|
| /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/Symbolize/ |
| SymbolizableObjectFile.cpp | 155 Expected<section_iterator> Sec = Symbol.getSection(); 156 if (!Sec || Obj.section_end() == *Sec) { 345 for (SectionRef Sec : Module->sections()) { 346 if (!Sec.isText() || Sec.isVirtual()) 349 if (Address >= Sec.getAddress() && 350 Address < Sec.getAddress() + Sec.getSize()) 351 return Sec.getIndex() [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/ |
| RTDyldObjectLinkingLayer.cpp | 218 auto Sec = Sym.getSection(); 219 if (!Sec) 220 return Sec.takeError(); 221 if (*Sec == COFFObj->section_end()) 223 auto &COFFSec = *COFFObj->getCOFFSection(**Sec);
|
| MachOPlatform.cpp | 288 auto *Sec = G.findSectionByName(SectionName); 289 if (!Sec) 291 jitlink::SectionRange R(*Sec); 407 if (auto *Sec = G.findSectionByName(SectionName)) { 408 auto SecBlocks = Sec->blocks(); 445 for (auto &Sec : G.sections()) { 446 if (&Sec != ObjCImageInfo) 447 for (auto *B : Sec.blocks())
|
| /src/external/apache2/llvm/dist/llvm/lib/MC/ |
| MCELFStreamer.cpp | 556 MCSection &Sec = *getCurrentSectionOnly(); 568 else if (isBundleLocked() && !Sec.isBundleGroupBeforeFirstInst()) { 587 if (Sec.getBundleLockState() == MCSection::BundleLockedAlignToEnd) { 597 Sec.setBundleGroupBeforeFirstInst(false); 630 MCSection &Sec = *getCurrentSectionOnly(); 638 Sec.setBundleGroupBeforeFirstInst(true); 646 Sec.setBundleLockState(AlignToEnd ? MCSection::BundleLockedAlignToEnd 651 MCSection &Sec = *getCurrentSectionOnly(); 658 else if (Sec.isBundleGroupBeforeFirstInst()) 669 Sec.setBundleLockState(MCSection::NotBundleLocked) [all...] |
| MCFragment.cpp | 34 for (MCSection &Sec : Asm) 35 if (!Sec.isVirtualSection()) 36 SectionOrder.push_back(&Sec); 37 for (MCSection &Sec : Asm) 38 if (Sec.isVirtualSection()) 39 SectionOrder.push_back(&Sec); 43 const MCSection *Sec = F->getParent(); 44 const MCFragment *LastValid = LastValidFragment.lookup(Sec); 47 assert(LastValid->getParent() == Sec); 52 MCSection *Sec = F->getParent() [all...] |
| MCWinCOFFStreamer.cpp | 208 MCSection *Sec = getCurrentSectionOnly(); 209 getAssembler().registerSection(*Sec); 210 if (Sec->getAlignment() < 4) 211 Sec->setAlignment(Align(4));
|
| /src/external/apache2/llvm/dist/llvm/lib/ObjectYAML/ |
| COFFEmitter.cpp | 70 COFFYAML::Section &Sec = *i; 74 StringRef Name = Sec.Name; 77 std::copy(Name.begin(), Name.end(), Sec.Header.Name); 86 Sec.Header.Name[0] = '/'; 87 std::copy(str.begin(), str.end(), Sec.Header.Name + 1); 90 if (Sec.Alignment) { 91 if (Sec.Alignment > 8192) { 95 if (!isPowerOf2_32(Sec.Alignment)) { 99 Sec.Header.Characteristics |= (Log2_32(Sec.Alignment) + 1) << 20 [all...] |
| ELFYAML.cpp | 1613 const ELFYAML::Section &Sec = *cast<ELFYAML::Section>(C.get()); 1614 if (Sec.Size && Sec.Content && 1615 (uint64_t)(*Sec.Size) < Sec.Content->binary_size()) 1634 std::vector<std::pair<StringRef, bool>> Entries = Sec.getEntries(); 1638 if ((Sec.Size || Sec.Content) && NumUsedEntries > 0)
|
| /src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/ELF/ |
| ELFObjcopy.cpp | 54 using SectionPred = std::function<bool(const SectionBase &Sec)>; 56 static bool isDebugSection(const SectionBase &Sec) { 57 return StringRef(Sec.Name).startswith(".debug") || 58 StringRef(Sec.Name).startswith(".zdebug") || Sec.Name == ".gdb_index"; 61 static bool isDWOSection(const SectionBase &Sec) { 62 return StringRef(Sec.Name).endswith(".dwo"); 65 static bool onlyKeepDWOPred(const Object &Obj, const SectionBase &Sec) { 67 if (&Sec == Obj.SectionNames) 71 return !isDWOSection(Sec); [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/MachO/ |
| MachOReader.cpp | 31 Section constructSectionCommon(SectionType Sec, uint32_t Index) { 32 StringRef SegName(Sec.segname, strnlen(Sec.segname, sizeof(Sec.segname))); 33 StringRef SectName(Sec.sectname, strnlen(Sec.sectname, sizeof(Sec.sectname))); 36 S.Addr = Sec.addr; 37 S.Size = Sec.size; 38 S.OriginalOffset = Sec.offset [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-objdump/ |
| ELFDump.cpp | 47 for (const typename ELFT::Shdr &Sec : *SectionsOrError) { 48 if (Sec.sh_type == ELF::SHT_DYNSYM) 49 return Elf.getStringTableForSymtab(Sec); 145 const object::ELFSectionRef &Sec) { 153 if ((Phdr.p_type == ELF::PT_LOAD) && (Phdr.p_vaddr <= Sec.getAddress()) && 154 (Phdr.p_vaddr + Phdr.p_memsz > Sec.getAddress())) 155 return Sec.getAddress() - Phdr.p_vaddr + Phdr.p_paddr; 158 return Sec.getAddress(); 161 uint64_t objdump::getELFSectionLMA(const object::ELFSectionRef &Sec) { 162 if (const auto *ELFObj = dyn_cast<ELF32LEObjectFile>(Sec.getObject()) [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/obj2yaml/ |
| macho2yaml.cpp | 42 Expected<MachOYAML::Section> constructSectionCommon(SectionType Sec, 45 Expected<MachOYAML::Section> constructSection(SectionType Sec, 75 MachODumper::constructSectionCommon(SectionType Sec, size_t SecIndex) { 77 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16); 78 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16); 79 TempSec.addr = Sec.addr; 80 TempSec.size = Sec.size; 81 TempSec.offset = Sec.offset; 82 TempSec.align = Sec.align; 83 TempSec.reloff = Sec.reloff [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/Native/ |
| NativeSession.cpp | 232 auto &Sec = Dbi->getSectionHeaders()[Section]; 233 if (RVA < Sec.VirtualAddress) 235 Offset = RVA - Sec.VirtualAddress; 385 auto &Sec = Dbi->getSectionHeaders()[Section - 1]; 386 return Sec.VirtualAddress + Offset;
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/IntelJITEvents/ |
| IntelJITEventListener.cpp | 279 object::section_iterator Sec = *SecOrErr; 280 if (Sec == Obj.section_end()) 282 uint64_t Index = Sec->getIndex();
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| RuntimeDyldMachO.cpp | 126 SectionRef Sec = Obj.getAnyRelocationSection(RelInfo); 127 bool IsCode = Sec.isText(); 128 if (auto SectionIDOrErr = findOrEmitSection(Obj, Sec, IsCode, 133 uint64_t Addr = Sec.getAddress();
|