Searched refs:Sec (Results 1 - 25 of 86) sorted by relevance

1234

/external/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsOptionRecord.cpp31 MCSectionELF *Sec = local
34 MCA.registerSection(*Sec);
35 Sec->setAlignment(8);
36 Streamer->SwitchSection(Sec);
50 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, local
52 MCA.registerSection(*Sec);
53 Sec->setAlignment(MTS->getABI().IsN32() ? 8 : 4);
54 Streamer->SwitchSection(Sec);
/external/llvm/tools/llvm-dwp/
H A DDWPStringPool.h34 MCSection *Sec; member in class:llvm::DWPStringPool
39 DWPStringPool(MCStreamer &Out, MCSection *Sec) : Out(Out), Sec(Sec) {} argument
46 Out.SwitchSection(Sec);
/external/swiftshader/third_party/LLVM/include/llvm/Object/
H A DMachO.h52 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const;
53 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const;
54 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const;
55 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const;
56 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const;
57 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const;
58 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const;
59 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const;
60 virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const;
63 virtual relocation_iterator getSectionRelBegin(DataRefImpl Sec) cons
[all...]
H A DCOFF.h91 const coff_section *toSec(DataRefImpl Sec) const;
105 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const;
106 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const;
107 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const;
108 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const;
109 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const;
110 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const;
111 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const;
112 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const;
113 virtual error_code isSectionBSS(DataRefImpl Sec, boo
[all...]
H A DObjectFile.h239 virtual error_code getSectionNext(DataRefImpl Sec, SectionRef &Res) const = 0;
240 virtual error_code getSectionName(DataRefImpl Sec, StringRef &Res) const = 0;
241 virtual error_code getSectionAddress(DataRefImpl Sec, uint64_t &Res) const =0;
242 virtual error_code getSectionSize(DataRefImpl Sec, uint64_t &Res) const = 0;
243 virtual error_code getSectionContents(DataRefImpl Sec, StringRef &Res)const=0;
244 virtual error_code getSectionAlignment(DataRefImpl Sec, uint64_t &Res)const=0;
245 virtual error_code isSectionText(DataRefImpl Sec, bool &Res) const = 0;
246 virtual error_code isSectionData(DataRefImpl Sec, bool &Res) const = 0;
247 virtual error_code isSectionBSS(DataRefImpl Sec, bool &Res) const = 0;
248 virtual error_code sectionContainsSymbol(DataRefImpl Sec, DataRefImp
[all...]
/external/llvm/include/llvm/MC/
H A DMCFragment.h137 explicit MCDummyFragment(MCSection *Sec) argument
138 : MCFragment(FT_Dummy, false, 0, Sec){};
148 MCSection *Sec)
149 : MCFragment(FType, HasInstructions, 0, Sec) {}
175 MCSection *Sec)
176 : MCEncodedFragment(FType, HasInstructions, Sec) {}
196 MCSection *Sec)
198 Sec) {}
224 MCDataFragment(MCSection *Sec = nullptr)
225 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {}
147 MCEncodedFragment(MCFragment::FragmentType FType, bool HasInstructions, MCSection *Sec) argument
173 MCEncodedFragmentWithContents(MCFragment::FragmentType FType, bool HasInstructions, MCSection *Sec) argument
194 MCEncodedFragmentWithFixups(MCFragment::FragmentType FType, bool HasInstructions, MCSection *Sec) argument
[all...]
H A DMCAsmLayout.h85 uint64_t getSectionAddressSize(const MCSection *Sec) const;
89 uint64_t getSectionFileSize(const MCSection *Sec) const;
/external/llvm/lib/Object/
H A DSymbolSize.cpp34 static unsigned getSectionID(const ObjectFile &O, SectionRef Sec) { argument
36 return M->getSectionID(Sec);
37 return cast<COFFObjectFile>(O).getSectionID(Sec);
69 for (SectionRef Sec : O.sections()) {
70 uint64_t Address = Sec.getAddress();
71 uint64_t Size = Sec.getSize();
73 {O.symbol_end(), Address + Size, 0, getSectionID(O, Sec)});
H A DCOFFObjectFile.cpp242 const coff_section *Sec = nullptr; local
243 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec))
246 Ret.p = reinterpret_cast<uintptr_t>(Sec);
256 const coff_section *Sec = toSec(Ref); local
257 Sec += 1;
258 Ref.p = reinterpret_cast<uintptr_t>(Sec);
263 const coff_section *Sec = toSec(Ref); local
264 return getSectionName(Sec, Result);
268 const coff_section *Sec = toSec(Ref); local
269 uint64_t Result = Sec
283 const coff_section *Sec = toSec(Ref); local
291 const coff_section *Sec = toSec(Ref); local
300 const coff_section *Sec = toSec(Ref); local
305 const coff_section *Sec = toSec(Ref); local
310 const coff_section *Sec = toSec(Ref); local
325 const coff_section *Sec = toSec(Ref); local
331 getNumberOfRelocations(const coff_section *Sec, MemoryBufferRef M, const uint8_t *base) argument
349 getFirstReloc(const coff_section *Sec, MemoryBufferRef M, const uint8_t *Base) argument
366 const coff_section *Sec = toSec(Ref); local
376 const coff_section *Sec = toSec(Ref); local
988 getSectionName(const coff_section *Sec, StringRef &Res) const argument
1033 getSectionContents(const coff_section *Sec, ArrayRef<uint8_t> &Res) const argument
[all...]
H A DModuleSummaryIndexObjectFile.cpp38 for (const SectionRef &Sec : Obj.sections()) {
39 if (Sec.isBitcode()) {
41 if (std::error_code EC = Sec.getContents(SecContents))
/external/ltp/testcases/kernel/fs/fs_maim/
H A Dmaimparts54 ($Cyl,$Heads,$Sec) = split(/\, /,$Temp1,3);
57 ($Sec,$Junk) = split(/ /,$Sec,2);
/external/llvm/include/llvm/Object/
H A DELF.h118 const Elf_Sym *symbol_begin(const Elf_Shdr *Sec) const {
119 if (!Sec)
121 if (Sec->sh_entsize != sizeof(Elf_Sym))
123 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset);
125 const Elf_Sym *symbol_end(const Elf_Shdr *Sec) const {
126 if (!Sec)
128 uint64_t Size = Sec->sh_size;
131 return symbol_begin(Sec) + Size / sizeof(Elf_Sym);
133 Elf_Sym_Range symbols(const Elf_Shdr *Sec) const {
134 return makeArrayRef(symbol_begin(Sec), symbol_en
200 getSymbol(const Elf_Shdr *Sec, uint32_t Index) const argument
407 ErrorOr<const Elf_Shdr *> Sec = getSection(Section); local
[all...]
H A DELFObjectFile.h60 virtual uint32_t getSectionType(DataRefImpl Sec) const = 0;
61 virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0;
222 void moveSectionNext(DataRefImpl &Sec) const override;
223 std::error_code getSectionName(DataRefImpl Sec,
225 uint64_t getSectionAddress(DataRefImpl Sec) const override;
226 uint64_t getSectionSize(DataRefImpl Sec) const override;
227 std::error_code getSectionContents(DataRefImpl Sec,
229 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
230 bool isSectionCompressed(DataRefImpl Sec) const override;
231 bool isSectionText(DataRefImpl Sec) cons
564 getSectionName(DataRefImpl Sec, StringRef &Result) const argument
585 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument
[all...]
H A DObjectFile.h211 virtual void moveSectionNext(DataRefImpl &Sec) const = 0;
212 virtual std::error_code getSectionName(DataRefImpl Sec,
214 virtual uint64_t getSectionAddress(DataRefImpl Sec) const = 0;
215 virtual uint64_t getSectionSize(DataRefImpl Sec) const = 0;
216 virtual std::error_code getSectionContents(DataRefImpl Sec,
218 virtual uint64_t getSectionAlignment(DataRefImpl Sec) const = 0;
219 virtual bool isSectionCompressed(DataRefImpl Sec) const = 0;
220 virtual bool isSectionText(DataRefImpl Sec) const = 0;
221 virtual bool isSectionData(DataRefImpl Sec) const = 0;
222 virtual bool isSectionBSS(DataRefImpl Sec) cons
[all...]
H A DMachO.h206 unsigned getSectionType(SectionRef Sec) const;
215 unsigned getSectionID(SectionRef Sec) const;
217 void moveSectionNext(DataRefImpl &Sec) const override;
218 std::error_code getSectionName(DataRefImpl Sec,
220 uint64_t getSectionAddress(DataRefImpl Sec) const override;
221 uint64_t getSectionSize(DataRefImpl Sec) const override;
222 std::error_code getSectionContents(DataRefImpl Sec,
224 uint64_t getSectionAlignment(DataRefImpl Sec) const override;
225 bool isSectionCompressed(DataRefImpl Sec) const override;
226 bool isSectionText(DataRefImpl Sec) cons
[all...]
/external/swiftshader/third_party/LLVM/lib/Object/
H A DCOFFObjectFile.cpp72 const coff_section *COFFObjectFile::toSec(DataRefImpl Sec) const {
73 const coff_section *addr = reinterpret_cast<const coff_section*>(Sec.p);
278 error_code COFFObjectFile::getSectionNext(DataRefImpl Sec, argument
280 const coff_section *sec = toSec(Sec);
282 Sec.p = reinterpret_cast<uintptr_t>(sec);
283 Result = SectionRef(Sec, this);
287 error_code COFFObjectFile::getSectionName(DataRefImpl Sec, argument
289 const coff_section *sec = toSec(Sec);
310 error_code COFFObjectFile::getSectionAddress(DataRefImpl Sec, argument
312 const coff_section *sec = toSec(Sec);
317 getSectionSize(DataRefImpl Sec, uint64_t &Result) const argument
324 getSectionContents(DataRefImpl Sec, StringRef &Result) const argument
339 getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const argument
348 isSectionText(DataRefImpl Sec, bool &Result) const argument
355 isSectionData(DataRefImpl Sec, bool &Result) const argument
362 isSectionBSS(DataRefImpl Sec, bool &Result) const argument
369 sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb, bool &Result) const argument
[all...]
/external/llvm/lib/MC/
H A DMCFragment.cpp34 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(); local
44 const MCFragment *LastValid = LastValidFragment.lookup(Sec);
47 assert(LastValid->getParent() == Sec);
62 MCSection *Sec local
[all...]
H A DMachObjectWriter.cpp106 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec, argument
108 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec);
109 unsigned Next = Sec->getLayoutOrder() + 1;
197 const MCSection &Sec, uint64_t VMAddr,
201 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec);
202 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec);
206 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!");
232 write32(IndirectSymBase.lookup(&Sec)); // reserved1
612 for (const MCSection *Sec
196 writeSection(const MCAsmLayout &Layout, const MCSection &Sec, uint64_t VMAddr, uint64_t FileOffset, unsigned Flags, uint64_t RelocationsStart, unsigned NumRelocations) argument
803 const auto &Sec = cast<MCSectionMachO>(Section); local
[all...]
H A DWinCOFFObjectWriter.cpp156 void defineSection(MCSectionCOFF const &Sec);
266 void WinCOFFObjectWriter::defineSection(MCSectionCOFF const &Sec) { argument
267 COFFSection *coff_section = createSection(Sec.getSectionName());
268 COFFSymbol *coff_symbol = createSymbol(Sec.getSectionName());
269 if (Sec.getSelection() != COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE) {
270 if (const MCSymbol *S = Sec.getCOMDATSymbol()) {
286 coff_symbol->Aux[0].Aux.SectionDefinition.Selection = Sec.getSelection();
288 coff_section->Header.Characteristics = Sec.getCharacteristics();
291 switch (Sec.getAlignment()) {
339 coff_section->MCSection = &Sec;
377 COFFSection *Sec = nullptr; local
643 const auto &Sec = cast<MCSectionCOFF>(Sym.getSection()); local
927 COFFSection *Sec = SectionMap[&Section]; local
[all...]
/external/llvm/tools/llvm-readobj/
H A DELFDumper.cpp348 bool checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
349 bool checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
350 bool checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
351 bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
363 void printRelocations(const Elf_Shdr *Sec, const ELFO *Obj);
497 const typename ELFO::Elf_Shdr *Sec,
500 if (!Sec)
502 StringRef Name = unwrapOrError(Obj->getSectionName(Sec));
503 W.printNumber("Section Name", Name, Sec->sh_name);
504 W.printHex("Address", Sec
496 printVersionSymbolSection(ELFDumper<ELFT> *Dumper, const ELFO *Obj, const typename ELFO::Elf_Shdr *Sec, ScopedPrinter &W) argument
529 printVersionDefinitionSection(ELFDumper<ELFT> *Dumper, const ELFO *Obj, const typename ELFO::Elf_Shdr *Sec, ScopedPrinter &W) argument
585 printVersionDependencySection(ELFDumper<ELFT> *Dumper, const ELFO *Obj, const typename ELFO::Elf_Shdr *Sec, ScopedPrinter &W) argument
731 const typename ELFO::Elf_Shdr *Sec = local
2252 ArrayRef<uint8_t> Sec = unwrapOrError(Obj->getSectionContents(Shdr)); local
2297 ArrayRef<uint8_t> Sec = unwrapOrError(Obj->getSectionContents(Shdr)); local
2317 ArrayRef<uint8_t> Sec = unwrapOrError(Obj->getSectionContents(Shdr)); local
2442 auto Sec = unwrapOrError(Obj->getSection(Ndx)); local
2471 const Elf_Shdr *Sec = unwrapOrError( local
2836 checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec) argument
2847 checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec) argument
2865 checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec) argument
2881 checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec) argument
3230 auto Sec = unwrapOrError(Obj->getSection(Data[Member])); local
3265 printRelocations(const Elf_Shdr *Sec, const ELFO *Obj) argument
3293 const Elf_Shdr *Sec = unwrapOrError( local
[all...]
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/
H A Dlast_write_time.pass.cpp176 using Sec = std::chrono::seconds;
195 SleepFor(Sec(2));
217 using Sec = std::chrono::seconds;
228 const file_time_type future_time = now + Hours(3) + Sec(42) + MicroSec(17);
229 const file_time_type past_time = now - Minutes(3) - Sec(42) - MicroSec(17);
230 const file_time_type before_epoch_time = epoch_time - Minutes(3) - Sec(42) - MicroSec(17);
234 const file_time_type just_before_epoch_time = epoch_time - Sec(2) - MicroSec(17);
256 file_time_type old_time(Sec(old_times.second));
268 TEST_CHECK(got_time > TC.new_time - Sec(1));
270 TEST_CHECK(got_time <= TC.new_time + Sec(
[all...]
/external/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp53 MachOYAML::Section constructSectionCommon(SectionType Sec) { argument
55 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16);
56 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16);
57 TempSec.addr = Sec.addr;
58 TempSec.size = Sec.size;
59 TempSec.offset = Sec.offset;
60 TempSec.align = Sec.align;
61 TempSec.reloff = Sec.reloff;
62 TempSec.nreloc = Sec.nreloc;
63 TempSec.flags = Sec
73 constructSection(MachO::section Sec) argument
79 constructSection(MachO::section_64 Sec) argument
95 SectionType Sec; local
[all...]
/external/llvm/tools/yaml2obj/
H A Dyaml2macho.cpp94 SectionType constructSection(MachOYAML::Section Sec) { argument
96 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16);
97 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16);
98 TempSec.addr = Sec.addr;
99 TempSec.size = Sec.size;
100 TempSec.offset = Sec.offset;
101 TempSec.align = Sec.align;
102 TempSec.reloff = Sec.reloff;
103 TempSec.nreloc = Sec.nreloc;
104 TempSec.flags = Sec
[all...]
/external/llvm/tools/dsymutil/
H A DMachOUtils.cpp277 MCSection *Sec = Layout.getSectionOrder()[i]; local
278 if (Sec->begin() == Sec->end() || !Layout.getSectionFileSize(Sec))
281 unsigned Align = Sec->getAlignment();
286 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0);
288 FileOffset += Layout.getSectionAddressSize(Sec);
289 VMAddr += Layout.getSectionAddressSize(Sec);
393 MCSection *Sec = Layout.getSectionOrder()[i]; local
394 if (Sec
[all...]
/external/llvm/tools/llvm-size/
H A Dllvm-size.cpp227 MachO::section_64 Sec = MachO->getSection64(Load, J); local
229 outs() << "\tSection (" << format("%.16s", &Sec.segname) << ", "
230 << format("%.16s", &Sec.sectname) << "): ";
232 outs() << "\tSection " << format("%.16s", &Sec.sectname) << ": ";
233 outs() << format(fmt.str().c_str(), Sec.size);
235 outs() << " (addr 0x" << format("%" PRIx64, Sec.addr) << " offset "
236 << Sec.offset << ")";
238 sec_total += Sec.size;
254 MachO::section Sec = MachO->getSection(Load, J); local
256 outs() << "\tSection (" << format("%.16s", &Sec
289 MachO::section_64 Sec = MachO->getSection64(Load, J); local
315 MachO::section Sec = MachO->getSection(Load, J); local
[all...]

Completed in 841 milliseconds

1234